(1.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) 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)  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.1ms) select sqlite_version(*)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (9.2ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.2ms) 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)  (1.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.1ms) select sqlite_version(*)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-27 16:27:07.550267"], ["updated_at", "2015-10-27 16:27:07.550267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.575295"], ["updated_at", "2015-10-27 16:27:07.575295"]]  (0.0ms) 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)  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:07.620027"], ["updated_at", "2015-10-27 16:27:07.620027"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-27 16:27:07.643613"], ["updated_at", "2015-10-27 16:27:07.643613"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.646785"], ["updated_at", "2015-10-27 16:27:07.646785"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} Notification Load (0.1ms) 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]] Message Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:07.664167"], ["updated_at", "2015-10-27 16:27:07.664167"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} Notification Load (0.2ms) 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]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.2ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:07.685378"], ["updated_at", "2015-10-27 16:27:07.685378"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON Notification Load (0.1ms) 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"]] SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:07.843945"], ["updated_at", "2015-10-27 16:27:07.843945"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-27 16:27:07.850530"], ["updated_at", "2015-10-27 16:27:07.850530"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.853403"], ["updated_at", "2015-10-27 16:27:07.853403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.6ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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

 (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-27 16:27:07.884442"], ["updated_at", "2015-10-27 16:27:07.884442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.888271"], ["updated_at", "2015-10-27 16:27:07.888271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user8

message body

 (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-27 16:27:07.899144"], ["updated_at", "2015-10-27 16:27:07.899144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.906616"], ["updated_at", "2015-10-27 16:27:07.906616"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user9

message body

 (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-27 16:27:07.913082"], ["updated_at", "2015-10-27 16:27:07.913082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.915927"], ["updated_at", "2015-10-27 16:27:07.915927"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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: 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: 7bit

user10

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:07.922038"], ["updated_at", "2015-10-27 16:27:07.922038"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.925429"], ["updated_at", "2015-10-27 16:27:07.925429"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-27 16:27:07.929519"], ["updated_at", "2015-10-27 16:27:07.929519"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-27 16:27:07.935610"], ["updated_at", "2015-10-27 16:27:07.935610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-27 16:27:07.942499"], ["updated_at", "2015-10-27 16:27:07.942499"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.3ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-27 16:27:07.955796"], ["updated_at", "2015-10-27 16:27:07.955796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-27 16:27:07.963139"], ["updated_at", "2015-10-27 16:27:07.963139"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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: 7bit

user16

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-27 16:27:07.973610"], ["updated_at", "2015-10-27 16:27:07.973610"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [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] Notification Load (0.3ms) 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] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [8b68d8b0-d643-4aed-805c-d5ee76c2f79f] Message Load (0.2ms) 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] SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user17

message body

[ActiveJob] [ActionMailer::DeliveryJob] [8b68d8b0-d643-4aed-805c-d5ee76c2f79f] Performed ActionMailer::DeliveryJob from Inline(mailers) in 9.22ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:08.011847"], ["updated_at", "2015-10-27 16:27:08.011847"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:08.016722"], ["updated_at", "2015-10-27 16:27:08.016722"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:08.021528"], ["updated_at", "2015-10-27 16:27:08.021528"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:08.026507"], ["updated_at", "2015-10-27 16:27:08.026507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-27 16:27:08.040507"], ["updated_at", "2015-10-27 16:27:08.040507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (8.5ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) 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)  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-27 16:27:35.836609"], ["updated_at", "2015-10-27 16:27:35.836609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.855026"], ["updated_at", "2015-10-27 16:27:35.855026"]]  (0.1ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:35.903124"], ["updated_at", "2015-10-27 16:27:35.903124"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-27 16:27:35.928509"], ["updated_at", "2015-10-27 16:27:35.928509"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.931922"], ["updated_at", "2015-10-27 16:27:35.931922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} Notification Load (0.2ms) 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]] Message Load (0.1ms) 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)  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:35.952349"], ["updated_at", "2015-10-27 16:27:35.952349"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} Notification Load (0.2ms) 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]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.0ms) 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)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:35.975389"], ["updated_at", "2015-10-27 16:27:35.975389"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON Notification Load (0.2ms) 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"]] SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.3ms) Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:36.138283"], ["updated_at", "2015-10-27 16:27:36.138283"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-27 16:27:36.144908"], ["updated_at", "2015-10-27 16:27:36.144908"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.148105"], ["updated_at", "2015-10-27 16:27:36.148105"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.6ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-27 16:27:36.180559"], ["updated_at", "2015-10-27 16:27:36.180559"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.184376"], ["updated_at", "2015-10-27 16:27:36.184376"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user8

message body

 (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-27 16:27:36.198377"], ["updated_at", "2015-10-27 16:27:36.198377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.201808"], ["updated_at", "2015-10-27 16:27:36.201808"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user9

message body

 (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-27 16:27:36.208539"], ["updated_at", "2015-10-27 16:27:36.208539"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.211303"], ["updated_at", "2015-10-27 16:27:36.211303"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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: 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: 7bit

user10

message body

 (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:36.217141"], ["updated_at", "2015-10-27 16:27:36.217141"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.220342"], ["updated_at", "2015-10-27 16:27:36.220342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-27 16:27:36.224603"], ["updated_at", "2015-10-27 16:27:36.224603"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-27 16:27:36.230429"], ["updated_at", "2015-10-27 16:27:36.230429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-27 16:27:36.237429"], ["updated_at", "2015-10-27 16:27:36.237429"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-27 16:27:36.249934"], ["updated_at", "2015-10-27 16:27:36.249934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-27 16:27:36.256127"], ["updated_at", "2015-10-27 16:27:36.256127"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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: 7bit

user16

message body

 (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-27 16:27:36.266180"], ["updated_at", "2015-10-27 16:27:36.266180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [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] Notification Load (0.2ms) 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] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [f26f5f0f-3fc6-4321-b854-0e28c490139c] Message Load (0.1ms) 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] SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user17

message body

[ActiveJob] [ActionMailer::DeliveryJob] [f26f5f0f-3fc6-4321-b854-0e28c490139c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 8.44ms  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:36.301420"], ["updated_at", "2015-10-27 16:27:36.301420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:36.306094"], ["updated_at", "2015-10-27 16:27:36.306094"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:36.311055"], ["updated_at", "2015-10-27 16:27:36.311055"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:36.315367"], ["updated_at", "2015-10-27 16:27:36.315367"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-27 16:27:36.327792"], ["updated_at", "2015-10-27 16:27:36.327792"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (8.2ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.2ms) 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)  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.1ms) select sqlite_version(*)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-27 16:30:34.464258"], ["updated_at", "2015-10-27 16:30:34.464258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.489946"], ["updated_at", "2015-10-27 16:30:34.489946"]]  (0.0ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:34.529943"], ["updated_at", "2015-10-27 16:30:34.529943"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-27 16:30:34.552896"], ["updated_at", "2015-10-27 16:30:34.552896"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.555963"], ["updated_at", "2015-10-27 16:30:34.555963"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} Notification Load (0.2ms) 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]] Message Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:34.573169"], ["updated_at", "2015-10-27 16:30:34.573169"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.1ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:34.596953"], ["updated_at", "2015-10-27 16:30:34.596953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON Notification Load (0.3ms) 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"]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.3ms) Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:34.749515"], ["updated_at", "2015-10-27 16:30:34.749515"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-27 16:30:34.755738"], ["updated_at", "2015-10-27 16:30:34.755738"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.758599"], ["updated_at", "2015-10-27 16:30:34.758599"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.3ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-27 16:30:34.787250"], ["updated_at", "2015-10-27 16:30:34.787250"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.790889"], ["updated_at", "2015-10-27 16:30:34.790889"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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.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: 7bit

user8

message body

 (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-27 16:30:34.798413"], ["updated_at", "2015-10-27 16:30:34.798413"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.801146"], ["updated_at", "2015-10-27 16:30:34.801146"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user9

message body

 (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-27 16:30:34.807853"], ["updated_at", "2015-10-27 16:30:34.807853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.818514"], ["updated_at", "2015-10-27 16:30:34.818514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user10

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:34.826880"], ["updated_at", "2015-10-27 16:30:34.826880"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:34.831918"], ["updated_at", "2015-10-27 16:30:34.831918"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:34.836470"], ["updated_at", "2015-10-27 16:30:34.836470"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:34.841137"], ["updated_at", "2015-10-27 16:30:34.841137"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:34.845893"], ["updated_at", "2015-10-27 16:30:34.845893"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:34.851577"], ["updated_at", "2015-10-27 16:30:34.851577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:34.860107"], ["updated_at", "2015-10-27 16:30:34.860107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:34.872024"], ["updated_at", "2015-10-27 16:30:34.872024"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:34.876854"], ["updated_at", "2015-10-27 16:30:34.876854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:34.882208"], ["updated_at", "2015-10-27 16:30:34.882208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:34.887392"], ["updated_at", "2015-10-27 16:30:34.887392"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:34.892061"], ["updated_at", "2015-10-27 16:30:34.892061"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (9.2ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) 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)  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.1ms) select sqlite_version(*)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-27 16:30:49.091208"], ["updated_at", "2015-10-27 16:30:49.091208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.104157"], ["updated_at", "2015-10-27 16:30:49.104157"]]  (0.0ms) 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)  (8.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:49.150807"], ["updated_at", "2015-10-27 16:30:49.150807"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-27 16:30:49.170791"], ["updated_at", "2015-10-27 16:30:49.170791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.174185"], ["updated_at", "2015-10-27 16:30:49.174185"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} Notification Load (0.2ms) 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]] Message Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:49.192099"], ["updated_at", "2015-10-27 16:30:49.192099"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.0ms) 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)  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:49.215497"], ["updated_at", "2015-10-27 16:30:49.215497"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON Notification Load (0.2ms) 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"]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.2ms) Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:49.348476"], ["updated_at", "2015-10-27 16:30:49.348476"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (8.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-27 16:30:49.364271"], ["updated_at", "2015-10-27 16:30:49.364271"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.367764"], ["updated_at", "2015-10-27 16:30:49.367764"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.6ms) SQL (0.2ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-27 16:30:49.393935"], ["updated_at", "2015-10-27 16:30:49.393935"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.397577"], ["updated_at", "2015-10-27 16:30:49.397577"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user8

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-27 16:30:49.405059"], ["updated_at", "2015-10-27 16:30:49.405059"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.407917"], ["updated_at", "2015-10-27 16:30:49.407917"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) SQL (0.2ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user9

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-27 16:30:49.423421"], ["updated_at", "2015-10-27 16:30:49.423421"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.426634"], ["updated_at", "2015-10-27 16:30:49.426634"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user10

message body

 (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:49.432732"], ["updated_at", "2015-10-27 16:30:49.432732"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.436330"], ["updated_at", "2015-10-27 16:30:49.436330"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-27 16:30:49.440639"], ["updated_at", "2015-10-27 16:30:49.440639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-27 16:30:49.446184"], ["updated_at", "2015-10-27 16:30:49.446184"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-27 16:30:49.451860"], ["updated_at", "2015-10-27 16:30:49.451860"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-27 16:30:49.458364"], ["updated_at", "2015-10-27 16:30:49.458364"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-27 16:30:49.474062"], ["updated_at", "2015-10-27 16:30:49.474062"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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: 7bit

user16

message body

 (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-27 16:30:49.483622"], ["updated_at", "2015-10-27 16:30:49.483622"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [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] Notification Load (0.1ms) 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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [f013c186-ba64-4fd9-9518-d46cbd3504ac] Message Load (0.0ms) 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] SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user17

message body

[ActiveJob] [ActionMailer::DeliveryJob] [f013c186-ba64-4fd9-9518-d46cbd3504ac] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.15ms  (1.6ms) rollback transaction  (0.3ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:49.519934"], ["updated_at", "2015-10-27 16:30:49.519934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:49.525630"], ["updated_at", "2015-10-27 16:30:49.525630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:49.530357"], ["updated_at", "2015-10-27 16:30:49.530357"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:49.535186"], ["updated_at", "2015-10-27 16:30:49.535186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-27 16:30:49.548004"], ["updated_at", "2015-10-27 16:30:49.548004"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (9.4ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.1ms) 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)  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.1ms) select sqlite_version(*)  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (3.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (9.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) 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)  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.1ms) select sqlite_version(*)  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:42:31.568351"], ["updated_at", "2015-10-27 16:42:31.568351"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:42:31.586811"], ["updated_at", "2015-10-27 16:42:31.586811"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:42:31.592329"], ["updated_at", "2015-10-27 16:42:31.592329"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:42:31.598093"], ["updated_at", "2015-10-27 16:42:31.598093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:42:31.611753"], ["updated_at", "2015-10-27 16:42:31.611753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:42:31.617806"], ["updated_at", "2015-10-27 16:42:31.617806"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:42:31.622692"], ["updated_at", "2015-10-27 16:42:31.622692"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:42:31.627571"], ["updated_at", "2015-10-27 16:42:31.627571"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:42:31.632507"], ["updated_at", "2015-10-27 16:42:31.632507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:42:31.637884"], ["updated_at", "2015-10-27 16:42:31.637884"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:42:31.642622"], ["updated_at", "2015-10-27 16:42:31.642622"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:42:31.648838"], ["updated_at", "2015-10-27 16:42:31.648838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (8.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) 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)  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.1ms) select sqlite_version(*)  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:43:04.638232"], ["updated_at", "2015-10-27 16:43:04.638232"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:43:04.653332"], ["updated_at", "2015-10-27 16:43:04.653332"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:43:04.657699"], ["updated_at", "2015-10-27 16:43:04.657699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:43:04.664109"], ["updated_at", "2015-10-27 16:43:04.664109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:43:04.669667"], ["updated_at", "2015-10-27 16:43:04.669667"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:43:04.673837"], ["updated_at", "2015-10-27 16:43:04.673837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:43:04.683713"], ["updated_at", "2015-10-27 16:43:04.683713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:43:04.690718"], ["updated_at", "2015-10-27 16:43:04.690718"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:43:04.695378"], ["updated_at", "2015-10-27 16:43:04.695378"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:43:04.700096"], ["updated_at", "2015-10-27 16:43:04.700096"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:43:04.705000"], ["updated_at", "2015-10-27 16:43:04.705000"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:43:04.709366"], ["updated_at", "2015-10-27 16:43:04.709366"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (10.8ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.9ms) 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)  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.1ms) select sqlite_version(*)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (10.2ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (3.3ms) 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)  (1.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:45:50.073370"], ["updated_at", "2015-10-27 16:45:50.073370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:45:50.093869"], ["updated_at", "2015-10-27 16:45:50.093869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:45:50.102960"], ["updated_at", "2015-10-27 16:45:50.102960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.7ms) rollback transaction  (0.3ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:45:50.119158"], ["updated_at", "2015-10-27 16:45:50.119158"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:45:50.134808"], ["updated_at", "2015-10-27 16:45:50.134808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:45:50.142808"], ["updated_at", "2015-10-27 16:45:50.142808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:45:50.151081"], ["updated_at", "2015-10-27 16:45:50.151081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:45:50.158137"], ["updated_at", "2015-10-27 16:45:50.158137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:45:50.167348"], ["updated_at", "2015-10-27 16:45:50.167348"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:45:50.185320"], ["updated_at", "2015-10-27 16:45:50.185320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:45:50.195516"], ["updated_at", "2015-10-27 16:45:50.195516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:45:50.207049"], ["updated_at", "2015-10-27 16:45:50.207049"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (8.7ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.9ms) 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)  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.1ms) select sqlite_version(*)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:46:10.223452"], ["updated_at", "2015-10-27 16:46:10.223452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (8.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:46:10.250227"], ["updated_at", "2015-10-27 16:46:10.250227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:46:10.256166"], ["updated_at", "2015-10-27 16:46:10.256166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:46:10.265950"], ["updated_at", "2015-10-27 16:46:10.265950"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:46:10.275540"], ["updated_at", "2015-10-27 16:46:10.275540"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:46:10.284594"], ["updated_at", "2015-10-27 16:46:10.284594"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:46:10.295291"], ["updated_at", "2015-10-27 16:46:10.295291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.3ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:46:10.309279"], ["updated_at", "2015-10-27 16:46:10.309279"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:46:10.318666"], ["updated_at", "2015-10-27 16:46:10.318666"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:46:10.332249"], ["updated_at", "2015-10-27 16:46:10.332249"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:46:10.340877"], ["updated_at", "2015-10-27 16:46:10.340877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:46:10.352757"], ["updated_at", "2015-10-27 16:46:10.352757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (8.9ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (3.5ms) 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)  (1.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.1ms) select sqlite_version(*)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:46:47.932528"], ["updated_at", "2015-10-27 16:46:47.932528"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (8.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:46:47.959181"], ["updated_at", "2015-10-27 16:46:47.959181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:46:47.964854"], ["updated_at", "2015-10-27 16:46:47.964854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:46:47.970636"], ["updated_at", "2015-10-27 16:46:47.970636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:46:47.986413"], ["updated_at", "2015-10-27 16:46:47.986413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:46:48.000079"], ["updated_at", "2015-10-27 16:46:48.000079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:46:48.007423"], ["updated_at", "2015-10-27 16:46:48.007423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:46:48.015876"], ["updated_at", "2015-10-27 16:46:48.015876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:46:48.027395"], ["updated_at", "2015-10-27 16:46:48.027395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:46:48.033827"], ["updated_at", "2015-10-27 16:46:48.033827"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:46:48.041077"], ["updated_at", "2015-10-27 16:46:48.041077"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:46:48.046581"], ["updated_at", "2015-10-27 16:46:48.046581"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (16.0ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (2.1ms) 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)  (6.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:49:17.425057"], ["updated_at", "2015-10-27 16:49:17.425057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:49:17.453089"], ["updated_at", "2015-10-27 16:49:17.453089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:49:17.459775"], ["updated_at", "2015-10-27 16:49:17.459775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.7ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.2ms) begin transaction  (0.4ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:49:17.477238"], ["updated_at", "2015-10-27 16:49:17.477238"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:49:17.493059"], ["updated_at", "2015-10-27 16:49:17.493059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:49:17.498647"], ["updated_at", "2015-10-27 16:49:17.498647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:49:17.507557"], ["updated_at", "2015-10-27 16:49:17.507557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.3ms) begin transaction  (0.4ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:49:17.521490"], ["updated_at", "2015-10-27 16:49:17.521490"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:49:17.541708"], ["updated_at", "2015-10-27 16:49:17.541708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:49:17.554297"], ["updated_at", "2015-10-27 16:49:17.554297"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (12.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:49:17.590412"], ["updated_at", "2015-10-27 16:49:17.590412"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.5ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:49:17.605114"], ["updated_at", "2015-10-27 16:49:17.605114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (9.2ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) 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)  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.1ms) select sqlite_version(*)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:50:49.129485"], ["updated_at", "2015-10-27 16:50:49.129485"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:50:49.152743"], ["updated_at", "2015-10-27 16:50:49.152743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:50:49.158466"], ["updated_at", "2015-10-27 16:50:49.158466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:50:49.166198"], ["updated_at", "2015-10-27 16:50:49.166198"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:50:49.178014"], ["updated_at", "2015-10-27 16:50:49.178014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:50:49.183410"], ["updated_at", "2015-10-27 16:50:49.183410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:50:49.188104"], ["updated_at", "2015-10-27 16:50:49.188104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:50:49.193131"], ["updated_at", "2015-10-27 16:50:49.193131"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:50:49.198005"], ["updated_at", "2015-10-27 16:50:49.198005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:50:49.202767"], ["updated_at", "2015-10-27 16:50:49.202767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:50:49.218979"], ["updated_at", "2015-10-27 16:50:49.218979"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:50:49.229694"], ["updated_at", "2015-10-27 16:50:49.229694"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (8.2ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.2ms) 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)  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.1ms) select sqlite_version(*)  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:51:19.913544"], ["updated_at", "2015-10-27 16:51:19.913544"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.937539"], ["updated_at", "2015-10-27 16:51:19.937539"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-27 16:51:19.943596"], ["updated_at", "2015-10-27 16:51:19.943596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-27 16:51:19.962072"], ["updated_at", "2015-10-27 16:51:19.962072"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-27 16:51:19.967496"], ["updated_at", "2015-10-27 16:51:19.967496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-27 16:51:19.973157"], ["updated_at", "2015-10-27 16:51:19.973157"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-27 16:51:19.982333"], ["updated_at", "2015-10-27 16:51:19.982333"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.4ms) SQL (0.1ms) 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: 7bit

user6

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-27 16:51:20.022928"], ["updated_at", "2015-10-27 16:51:20.022928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [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] NotifyWith::Notification Load (0.1ms) 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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [8b4d1ac2-217d-41e1-a9f7-b98f50fe8567] Message Load (0.1ms) 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] SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

[ActiveJob] [ActionMailer::DeliveryJob] [8b4d1ac2-217d-41e1-a9f7-b98f50fe8567] Performed ActionMailer::DeliveryJob from Inline(mailers) in 10.18ms  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:51:20.057745"], ["updated_at", "2015-10-27 16:51:20.057745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:51:20.063684"], ["updated_at", "2015-10-27 16:51:20.063684"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:51:20.069039"], ["updated_at", "2015-10-27 16:51:20.069039"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:51:20.081156"], ["updated_at", "2015-10-27 16:51:20.081156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:51:20.096133"], ["updated_at", "2015-10-27 16:51:20.096133"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.099350"], ["updated_at", "2015-10-27 16:51:20.099350"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (9.0ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.1ms) 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)  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (2.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:52:26.559120"], ["updated_at", "2015-10-27 16:52:26.559120"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.584077"], ["updated_at", "2015-10-27 16:52:26.584077"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-27 16:52:26.590356"], ["updated_at", "2015-10-27 16:52:26.590356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-27 16:52:26.607843"], ["updated_at", "2015-10-27 16:52:26.607843"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-27 16:52:26.613766"], ["updated_at", "2015-10-27 16:52:26.613766"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-27 16:52:26.619284"], ["updated_at", "2015-10-27 16:52:26.619284"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-27 16:52:26.628525"], ["updated_at", "2015-10-27 16:52:26.628525"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (3.0ms) SQL (0.1ms) 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: 7bit

user6

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-27 16:52:26.667677"], ["updated_at", "2015-10-27 16:52:26.667677"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [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] NotifyWith::Notification Load (0.1ms) 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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [632e8929-af5c-4110-9e12-07ed3d1c4039] Message Load (0.1ms) 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] SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

[ActiveJob] [ActionMailer::DeliveryJob] [632e8929-af5c-4110-9e12-07ed3d1c4039] Performed ActionMailer::DeliveryJob from Inline(mailers) in 8.69ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:52:26.700350"], ["updated_at", "2015-10-27 16:52:26.700350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:52:26.706691"], ["updated_at", "2015-10-27 16:52:26.706691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:52:26.713242"], ["updated_at", "2015-10-27 16:52:26.713242"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:52:26.725060"], ["updated_at", "2015-10-27 16:52:26.725060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:52:26.741659"], ["updated_at", "2015-10-27 16:52:26.741659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.746540"], ["updated_at", "2015-10-27 16:52:26.746540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (9.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) 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)  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.1ms) select sqlite_version(*)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:53:39.693136"], ["updated_at", "2015-10-27 16:53:39.693136"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-27 16:53:39.705454"], ["updated_at", "2015-10-27 16:53:39.705454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-27 16:53:39.728863"], ["updated_at", "2015-10-27 16:53:39.728863"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-27 16:53:39.733695"], ["updated_at", "2015-10-27 16:53:39.733695"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-27 16:53:39.746752"], ["updated_at", "2015-10-27 16:53:39.746752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-27 16:53:39.757946"], ["updated_at", "2015-10-27 16:53:39.757946"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.6ms) SQL (0.1ms) 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: 7bit

user5

message body

 (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-27 16:53:39.797550"], ["updated_at", "2015-10-27 16:53:39.797550"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [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] NotifyWith::Notification Load (0.1ms) 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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [077d8d71-a8d0-4b54-b51c-30340fab6231] Message Load (0.1ms) 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] SQL (0.0ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user6

message body

[ActiveJob] [ActionMailer::DeliveryJob] [077d8d71-a8d0-4b54-b51c-30340fab6231] Performed ActionMailer::DeliveryJob from Inline(mailers) in 9.39ms  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:53:39.831781"], ["updated_at", "2015-10-27 16:53:39.831781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:53:39.837279"], ["updated_at", "2015-10-27 16:53:39.837279"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:53:39.843255"], ["updated_at", "2015-10-27 16:53:39.843255"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:53:39.854758"], ["updated_at", "2015-10-27 16:53:39.854758"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:53:39.862411"], ["updated_at", "2015-10-27 16:53:39.862411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.865715"], ["updated_at", "2015-10-27 16:53:39.865715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (8.4ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) 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)  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.1ms) select sqlite_version(*)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:53:58.184766"], ["updated_at", "2015-10-27 16:53:58.184766"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.203011"], ["updated_at", "2015-10-27 16:53:58.203011"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (8.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-27 16:53:58.216494"], ["updated_at", "2015-10-27 16:53:58.216494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-27 16:53:58.228731"], ["updated_at", "2015-10-27 16:53:58.228731"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-27 16:53:58.239124"], ["updated_at", "2015-10-27 16:53:58.239124"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-27 16:53:58.244150"], ["updated_at", "2015-10-27 16:53:58.244150"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-27 16:53:58.251932"], ["updated_at", "2015-10-27 16:53:58.251932"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.2ms) SQL (0.2ms) 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: 7bit

user6

message body

 (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-27 16:53:58.285962"], ["updated_at", "2015-10-27 16:53:58.285962"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [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] NotifyWith::Notification Load (0.1ms) 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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [57663dad-8b51-4685-a710-d19d3bd0fe47] Message Load (0.1ms) 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] SQL (0.0ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

[ActiveJob] [ActionMailer::DeliveryJob] [57663dad-8b51-4685-a710-d19d3bd0fe47] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.9ms  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:53:58.308982"], ["updated_at", "2015-10-27 16:53:58.308982"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:53:58.313246"], ["updated_at", "2015-10-27 16:53:58.313246"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:53:58.319042"], ["updated_at", "2015-10-27 16:53:58.319042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:53:58.324546"], ["updated_at", "2015-10-27 16:53:58.324546"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-27 16:53:58.347118"], ["updated_at", "2015-10-27 16:53:58.347118"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.8ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) 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)  (0.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.1ms) select sqlite_version(*)  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-27 16:55:36.640577"], ["updated_at", "2015-10-27 16:55:36.640577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.656775"], ["updated_at", "2015-10-27 16:55:36.656775"]]  (0.0ms) 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)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:36.702992"], ["updated_at", "2015-10-27 16:55:36.702992"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-27 16:55:36.727540"], ["updated_at", "2015-10-27 16:55:36.727540"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.730660"], ["updated_at", "2015-10-27 16:55:36.730660"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.2ms) 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]] Message Load (0.1ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:36.748628"], ["updated_at", "2015-10-27 16:55:36.748628"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.0ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:36.765064"], ["updated_at", "2015-10-27 16:55:36.765064"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.2ms) 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"]] SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:36.926887"], ["updated_at", "2015-10-27 16:55:36.926887"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-27 16:55:36.934408"], ["updated_at", "2015-10-27 16:55:36.934408"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.938225"], ["updated_at", "2015-10-27 16:55:36.938225"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.6ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-27 16:55:36.969976"], ["updated_at", "2015-10-27 16:55:36.969976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.973898"], ["updated_at", "2015-10-27 16:55:36.973898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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 (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: 7bit

user8

message body

 (1.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-27 16:55:36.986517"], ["updated_at", "2015-10-27 16:55:36.986517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.992669"], ["updated_at", "2015-10-27 16:55:36.992669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user9

message body

 (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-27 16:55:36.999457"], ["updated_at", "2015-10-27 16:55:36.999457"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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:37.002303"], ["updated_at", "2015-10-27 16:55:37.002303"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = '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: 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: 7bit

user10

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:37.008977"], ["updated_at", "2015-10-27 16:55:37.008977"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.012320"], ["updated_at", "2015-10-27 16:55:37.012320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-27 16:55:37.019118"], ["updated_at", "2015-10-27 16:55:37.019118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-27 16:55:37.026489"], ["updated_at", "2015-10-27 16:55:37.026489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-27 16:55:37.037318"], ["updated_at", "2015-10-27 16:55:37.037318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-27 16:55:37.044877"], ["updated_at", "2015-10-27 16:55:37.044877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-27 16:55:37.052082"], ["updated_at", "2015-10-27 16:55:37.052082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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: 7bit

user16

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-27 16:55:37.062069"], ["updated_at", "2015-10-27 16:55:37.062069"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [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] NotifyWith::Notification Load (0.1ms) 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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [685e52bd-4fb7-4578-b033-964904a4b32f] Message Load (0.0ms) 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] SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user17

message body

[ActiveJob] [ActionMailer::DeliveryJob] [685e52bd-4fb7-4578-b033-964904a4b32f] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.18ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:37.099060"], ["updated_at", "2015-10-27 16:55:37.099060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:37.103936"], ["updated_at", "2015-10-27 16:55:37.103936"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:37.108789"], ["updated_at", "2015-10-27 16:55:37.108789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:37.113798"], ["updated_at", "2015-10-27 16:55:37.113798"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-27 16:55:37.126587"], ["updated_at", "2015-10-27 16:55:37.126587"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (9.2ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) 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)  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-27 16:55:51.139318"], ["updated_at", "2015-10-27 16:55:51.139318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.163323"], ["updated_at", "2015-10-27 16:55:51.163323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.0ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:51.192468"], ["updated_at", "2015-10-27 16:55:51.192468"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-27 16:55:51.202336"], ["updated_at", "2015-10-27 16:55:51.202336"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.205462"], ["updated_at", "2015-10-27 16:55:51.205462"]]  (0.0ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:51.214787"], ["updated_at", "2015-10-27 16:55:51.214787"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-27 16:55:51.225934"], ["updated_at", "2015-10-27 16:55:51.225934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.230067"], ["updated_at", "2015-10-27 16:55:51.230067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms)  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:51.394224"], ["updated_at", "2015-10-27 16:55:51.394224"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-27 16:55:51.401063"], ["updated_at", "2015-10-27 16:55:51.401063"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.404670"], ["updated_at", "2015-10-27 16:55:51.404670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (2.0ms) SQL (0.2ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

 (1.1ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-27 16:55:51.457915"], ["updated_at", "2015-10-27 16:55:51.457915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.462157"], ["updated_at", "2015-10-27 16:55:51.462157"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user8

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-27 16:55:51.470166"], ["updated_at", "2015-10-27 16:55:51.470166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.473480"], ["updated_at", "2015-10-27 16:55:51.473480"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) UPDATE "notifications" SET "is_send" = '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: 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: 7bit

user9

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-27 16:55:51.480285"], ["updated_at", "2015-10-27 16:55:51.480285"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.483467"], ["updated_at", "2015-10-27 16:55:51.483467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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 (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: 7bit

user10

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:51.491364"], ["updated_at", "2015-10-27 16:55:51.491364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.496133"], ["updated_at", "2015-10-27 16:55:51.496133"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-27 16:55:51.501054"], ["updated_at", "2015-10-27 16:55:51.501054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-27 16:55:51.514925"], ["updated_at", "2015-10-27 16:55:51.514925"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-27 16:55:51.521825"], ["updated_at", "2015-10-27 16:55:51.521825"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-27 16:55:51.527559"], ["updated_at", "2015-10-27 16:55:51.527559"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-27 16:55:51.534045"], ["updated_at", "2015-10-27 16:55:51.534045"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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: 7bit

user16

message body

 (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-27 16:55:51.546608"], ["updated_at", "2015-10-27 16:55:51.546608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [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] NotifyWith::Notification Load (0.2ms) 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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [8da1e714-8c0f-4525-93db-a50e59a09980] Message Load (0.1ms) 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] SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user17

message body

[ActiveJob] [ActionMailer::DeliveryJob] [8da1e714-8c0f-4525-93db-a50e59a09980] Performed ActionMailer::DeliveryJob from Inline(mailers) in 9.99ms  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:51.587487"], ["updated_at", "2015-10-27 16:55:51.587487"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:51.593745"], ["updated_at", "2015-10-27 16:55:51.593745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:51.599399"], ["updated_at", "2015-10-27 16:55:51.599399"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.3ms) begin transaction  (0.4ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:51.611609"], ["updated_at", "2015-10-27 16:55:51.611609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:51.622020"], ["updated_at", "2015-10-27 16:55:51.622020"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.625312"], ["updated_at", "2015-10-27 16:55:51.625312"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (8.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.1ms) 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)  (1.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.1ms) select sqlite_version(*)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-27 16:56:00.997022"], ["updated_at", "2015-10-27 16:56:00.997022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.016035"], ["updated_at", "2015-10-27 16:56:01.016035"]]  (0.1ms) 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)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:56:01.063721"], ["updated_at", "2015-10-27 16:56:01.063721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["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)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-27 16:56:01.086788"], ["updated_at", "2015-10-27 16:56:01.086788"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.090131"], ["updated_at", "2015-10-27 16:56:01.090131"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.2ms) 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]] Message Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:56:01.109054"], ["updated_at", "2015-10-27 16:56:01.109054"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.3ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.1ms) 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)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:56:01.130090"], ["updated_at", "2015-10-27 16:56:01.130090"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.2ms) 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"]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.3ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:56:01.282620"], ["updated_at", "2015-10-27 16:56:01.282620"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-27 16:56:01.289504"], ["updated_at", "2015-10-27 16:56:01.289504"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.292883"], ["updated_at", "2015-10-27 16:56:01.292883"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.5ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-27 16:56:01.324319"], ["updated_at", "2015-10-27 16:56:01.324319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.328584"], ["updated_at", "2015-10-27 16:56:01.328584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user8

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-27 16:56:01.336441"], ["updated_at", "2015-10-27 16:56:01.336441"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.340247"], ["updated_at", "2015-10-27 16:56:01.340247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.3ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user9

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-27 16:56:01.355072"], ["updated_at", "2015-10-27 16:56:01.355072"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.358294"], ["updated_at", "2015-10-27 16:56:01.358294"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = '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: 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: 7bit

user10

message body

 (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:56:01.364379"], ["updated_at", "2015-10-27 16:56:01.364379"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.367790"], ["updated_at", "2015-10-27 16:56:01.367790"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-27 16:56:01.372308"], ["updated_at", "2015-10-27 16:56:01.372308"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-27 16:56:01.378246"], ["updated_at", "2015-10-27 16:56:01.378246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-27 16:56:01.386200"], ["updated_at", "2015-10-27 16:56:01.386200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-27 16:56:01.392796"], ["updated_at", "2015-10-27 16:56:01.392796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (1.9ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-27 16:56:01.405147"], ["updated_at", "2015-10-27 16:56:01.405147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user16

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-27 16:56:01.417642"], ["updated_at", "2015-10-27 16:56:01.417642"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [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] NotifyWith::Notification Load (0.1ms) 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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [bf152644-4a85-4c46-8c46-6da7dea0476c] Message Load (0.0ms) 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] SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user17

message body

[ActiveJob] [ActionMailer::DeliveryJob] [bf152644-4a85-4c46-8c46-6da7dea0476c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.84ms  (1.3ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:56:01.455935"], ["updated_at", "2015-10-27 16:56:01.455935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:56:01.462222"], ["updated_at", "2015-10-27 16:56:01.462222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:56:01.467177"], ["updated_at", "2015-10-27 16:56:01.467177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:56:01.471907"], ["updated_at", "2015-10-27 16:56:01.471907"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-27 16:56:01.484448"], ["updated_at", "2015-10-27 16:56:01.484448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (9.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) 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)  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.1ms) select sqlite_version(*)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-27 17:03:13.158212"], ["updated_at", "2015-10-27 17:03:13.158212"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.182729"], ["updated_at", "2015-10-27 17:03:13.182729"]]  (0.1ms) 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)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:03:13.225288"], ["updated_at", "2015-10-27 17:03:13.225288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.2ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["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)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-27 17:03:13.251107"], ["updated_at", "2015-10-27 17:03:13.251107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.255465"], ["updated_at", "2015-10-27 17:03:13.255465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.2ms) 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]] Message Load (0.2ms) 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)  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:03:13.290248"], ["updated_at", "2015-10-27 17:03:13.290248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.1ms) 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)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:03:13.307823"], ["updated_at", "2015-10-27 17:03:13.307823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.2ms) 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"]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.2ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:03:13.478279"], ["updated_at", "2015-10-27 17:03:13.478279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-27 17:03:13.485678"], ["updated_at", "2015-10-27 17:03:13.485678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.489434"], ["updated_at", "2015-10-27 17:03:13.489434"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.4ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

 (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-27 17:03:13.520229"], ["updated_at", "2015-10-27 17:03:13.520229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.523929"], ["updated_at", "2015-10-27 17:03:13.523929"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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 (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: 7bit

user8

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-27 17:03:13.532697"], ["updated_at", "2015-10-27 17:03:13.532697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.536199"], ["updated_at", "2015-10-27 17:03:13.536199"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.3ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user9

message body

 (1.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-27 17:03:13.551591"], ["updated_at", "2015-10-27 17:03:13.551591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.555176"], ["updated_at", "2015-10-27 17:03:13.555176"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user10

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:03:13.563117"], ["updated_at", "2015-10-27 17:03:13.563117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.567814"], ["updated_at", "2015-10-27 17:03:13.567814"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-27 17:03:13.573584"], ["updated_at", "2015-10-27 17:03:13.573584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-27 17:03:13.583029"], ["updated_at", "2015-10-27 17:03:13.583029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-27 17:03:13.597426"], ["updated_at", "2015-10-27 17:03:13.597426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-27 17:03:13.607620"], ["updated_at", "2015-10-27 17:03:13.607620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-27 17:03:13.617233"], ["updated_at", "2015-10-27 17:03:13.617233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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: 7bit

user16

message body

 (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-27 17:03:13.630363"], ["updated_at", "2015-10-27 17:03:13.630363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [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] NotifyWith::Notification Load (0.1ms) 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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [d916d018-a5e4-4899-8ea5-4813e23d9f2b] Message Load (0.0ms) 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] SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user17

message body

[ActiveJob] [ActionMailer::DeliveryJob] [d916d018-a5e4-4899-8ea5-4813e23d9f2b] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.95ms  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:03:13.669677"], ["updated_at", "2015-10-27 17:03:13.669677"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:03:13.674425"], ["updated_at", "2015-10-27 17:03:13.674425"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:03:13.680152"], ["updated_at", "2015-10-27 17:03:13.680152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:03:13.685620"], ["updated_at", "2015-10-27 17:03:13.685620"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-27 17:03:13.699809"], ["updated_at", "2015-10-27 17:03:13.699809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (9.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) 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)  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.1ms) select sqlite_version(*)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-27 17:07:32.739127"], ["updated_at", "2015-10-27 17:07:32.739127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.759823"], ["updated_at", "2015-10-27 17:07:32.759823"]]  (0.1ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:07:32.805455"], ["updated_at", "2015-10-27 17:07:32.805455"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["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)  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-27 17:07:32.829952"], ["updated_at", "2015-10-27 17:07:32.829952"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.833301"], ["updated_at", "2015-10-27 17:07:32.833301"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.2ms) 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]] Message Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:07:32.853025"], ["updated_at", "2015-10-27 17:07:32.853025"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.0ms) 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)  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:07:32.876695"], ["updated_at", "2015-10-27 17:07:32.876695"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.1ms) 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"]] SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.2ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:07:33.034096"], ["updated_at", "2015-10-27 17:07:33.034096"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-27 17:07:33.042059"], ["updated_at", "2015-10-27 17:07:33.042059"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.045636"], ["updated_at", "2015-10-27 17:07:33.045636"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.9ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

 (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-27 17:07:33.078774"], ["updated_at", "2015-10-27 17:07:33.078774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.082905"], ["updated_at", "2015-10-27 17:07:33.082905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user8

message body

 (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-27 17:07:33.093081"], ["updated_at", "2015-10-27 17:07:33.093081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.099976"], ["updated_at", "2015-10-27 17:07:33.099976"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user9

message body

 (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-27 17:07:33.106554"], ["updated_at", "2015-10-27 17:07:33.106554"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.109590"], ["updated_at", "2015-10-27 17:07:33.109590"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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: 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: 7bit

user10

message body

 (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:07:33.116010"], ["updated_at", "2015-10-27 17:07:33.116010"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.119260"], ["updated_at", "2015-10-27 17:07:33.119260"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-27 17:07:33.123857"], ["updated_at", "2015-10-27 17:07:33.123857"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-27 17:07:33.131620"], ["updated_at", "2015-10-27 17:07:33.131620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-27 17:07:33.140034"], ["updated_at", "2015-10-27 17:07:33.140034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-27 17:07:33.150974"], ["updated_at", "2015-10-27 17:07:33.150974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-27 17:07:33.156786"], ["updated_at", "2015-10-27 17:07:33.156786"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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: 7bit

user16

message body

 (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-27 17:07:33.166853"], ["updated_at", "2015-10-27 17:07:33.166853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [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] NotifyWith::Notification Load (0.1ms) 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] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [49a11863-db07-4a12-8195-5dfb44b5618b] Message Load (0.1ms) 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] SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user17

message body

[ActiveJob] [ActionMailer::DeliveryJob] [49a11863-db07-4a12-8195-5dfb44b5618b] Performed ActionMailer::DeliveryJob from Inline(mailers) in 8.04ms  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:07:33.204097"], ["updated_at", "2015-10-27 17:07:33.204097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:07:33.208836"], ["updated_at", "2015-10-27 17:07:33.208836"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:07:33.213458"], ["updated_at", "2015-10-27 17:07:33.213458"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:07:33.218021"], ["updated_at", "2015-10-27 17:07:33.218021"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-27 17:07:33.231665"], ["updated_at", "2015-10-27 17:07:33.231665"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') SQL (0.3ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (8.9ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) 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)  (1.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-27 17:10:30.659089"], ["updated_at", "2015-10-27 17:10:30.659089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.691120"], ["updated_at", "2015-10-27 17:10:30.691120"]]  (0.1ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:10:30.738790"], ["updated_at", "2015-10-27 17:10:30.738790"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-27 17:10:30.767070"], ["updated_at", "2015-10-27 17:10:30.767070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.773383"], ["updated_at", "2015-10-27 17:10:30.773383"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.6ms) 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]] Message Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:10:30.806213"], ["updated_at", "2015-10-27 17:10:30.806213"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:10:30.824291"], ["updated_at", "2015-10-27 17:10:30.824291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.3ms) 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"]] SQL (0.2ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 5ms (ActiveRecord: 0.4ms) NotifyWith::Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:10:31.023580"], ["updated_at", "2015-10-27 17:10:31.023580"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-27 17:10:31.030874"], ["updated_at", "2015-10-27 17:10:31.030874"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.035780"], ["updated_at", "2015-10-27 17:10:31.035780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.6ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-27 17:10:31.073203"], ["updated_at", "2015-10-27 17:10:31.073203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.079180"], ["updated_at", "2015-10-27 17:10:31.079180"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) SQL (0.2ms) 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.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: 7bit

user8

message body

 (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-27 17:10:31.095126"], ["updated_at", "2015-10-27 17:10:31.095126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.099411"], ["updated_at", "2015-10-27 17:10:31.099411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user9

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-27 17:10:31.108068"], ["updated_at", "2015-10-27 17:10:31.108068"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.111667"], ["updated_at", "2015-10-27 17:10:31.111667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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 (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: 7bit

user10

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:10:31.122332"], ["updated_at", "2015-10-27 17:10:31.122332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.127706"], ["updated_at", "2015-10-27 17:10:31.127706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-27 17:10:31.134509"], ["updated_at", "2015-10-27 17:10:31.134509"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-27 17:10:31.148669"], ["updated_at", "2015-10-27 17:10:31.148669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-27 17:10:31.155009"], ["updated_at", "2015-10-27 17:10:31.155009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-27 17:10:31.161816"], ["updated_at", "2015-10-27 17:10:31.161816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-27 17:10:31.169750"], ["updated_at", "2015-10-27 17:10:31.169750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user16

message body

 (0.7ms) rollback transaction  (0.3ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-27 17:10:31.195375"], ["updated_at", "2015-10-27 17:10:31.195375"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [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] NotifyWith::Notification Load (0.1ms) 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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e6fbb834-74b5-4d36-9d22-9b3c6f38d545] Message Load (0.1ms) 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] SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user17

message body

[ActiveJob] [ActionMailer::DeliveryJob] [e6fbb834-74b5-4d36-9d22-9b3c6f38d545] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.69ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:10:31.223244"], ["updated_at", "2015-10-27 17:10:31.223244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:10:31.230208"], ["updated_at", "2015-10-27 17:10:31.230208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:10:31.245143"], ["updated_at", "2015-10-27 17:10:31.245143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:10:31.251815"], ["updated_at", "2015-10-27 17:10:31.251815"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-27 17:10:31.265879"], ["updated_at", "2015-10-27 17:10:31.265879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.2ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (2.4ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (2.5ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.1ms) 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'  (1.4ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (1.0ms) 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)  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:13:16.016214"], ["updated_at", "2015-10-28 11:13:16.016214"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:13:16.034415"], ["updated_at", "2015-10-28 11:13:16.034415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (1.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:13:16.057106"], ["updated_at", "2015-10-28 11:13:16.057106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:13:16.075749"], ["updated_at", "2015-10-28 11:13:16.075749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:13:16.105614"], ["updated_at", "2015-10-28 11:13:16.105614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (1.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:13:16.294270"], ["updated_at", "2015-10-28 11:13:16.294270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:13:16.313860"], ["updated_at", "2015-10-28 11:13:16.313860"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:13:16.333631"], ["updated_at", "2015-10-28 11:13:16.333631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:13:16.362045"], ["updated_at", "2015-10-28 11:13:16.362045"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:13:16.393049"], ["updated_at", "2015-10-28 11:13:16.393049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 11:13:16.405991"], ["updated_at", "2015-10-28 11:13:16.405991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:13:16.423657"], ["updated_at", "2015-10-28 11:13:16.423657"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.3ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (1.4ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 11:13:16.447745"], ["updated_at", "2015-10-28 11:13:16.447745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:13:16.457151"], ["updated_at", "2015-10-28 11:13:16.457151"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 11:13:16.468614"], ["updated_at", "2015-10-28 11:13:16.468614"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:13:16.479554"], ["updated_at", "2015-10-28 11:13:16.479554"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (1.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 11:13:16.508121"], ["updated_at", "2015-10-28 11:13:16.508121"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:13:16.522657"], ["updated_at", "2015-10-28 11:13:16.522657"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 11:13:16.574186"], ["updated_at", "2015-10-28 11:13:16.574186"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:13:16.586089"], ["updated_at", "2015-10-28 11:13:16.586089"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (4.9ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:13:16.603436"], ["updated_at", "2015-10-28 11:13:16.603436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.3ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:13:16.642560"], ["updated_at", "2015-10-28 11:13:16.642560"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.3ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.3ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.3ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction NotifyWith::NotificationType Load (0.5ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 11:14:49.495775"], ["updated_at", "2015-10-28 11:14:49.495775"]]  (0.7ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (8.5ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (2.3ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (2.0ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.8ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.2ms) 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'  (0.9ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (0.8ms) 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)  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 11:14:50.935926"], ["updated_at", "2015-10-28 11:14:50.935926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.956997"], ["updated_at", "2015-10-28 11:14:50.956997"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:14:50.980815"], ["updated_at", "2015-10-28 11:14:50.980815"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 11:14:50.992798"], ["updated_at", "2015-10-28 11:14:50.992798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.998617"], ["updated_at", "2015-10-28 11:14:50.998617"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:14:51.005615"], ["updated_at", "2015-10-28 11:14:51.005615"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 11:14:51.016525"], ["updated_at", "2015-10-28 11:14:51.016525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.027212"], ["updated_at", "2015-10-28 11:14:51.027212"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:14:51.195240"], ["updated_at", "2015-10-28 11:14:51.195240"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.2ms) begin transaction  (0.4ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 11:14:51.206560"], ["updated_at", "2015-10-28 11:14:51.206560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.211143"], ["updated_at", "2015-10-28 11:14:51.211143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 7.2ms  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 11:14:51.228019"], ["updated_at", "2015-10-28 11:14:51.228019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.235904"], ["updated_at", "2015-10-28 11:14:51.235904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 2.1ms  (1.4ms) rollback transaction  (0.3ms) begin transaction  (0.6ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 11:14:51.253000"], ["updated_at", "2015-10-28 11:14:51.253000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.259105"], ["updated_at", "2015-10-28 11:14:51.259105"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 2.0ms  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (4.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 11:14:51.271049"], ["updated_at", "2015-10-28 11:14:51.271049"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.284051"], ["updated_at", "2015-10-28 11:14:51.284051"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 2.1ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.5ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:14:51.297615"], ["updated_at", "2015-10-28 11:14:51.297615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 11:14:51.348519"], ["updated_at", "2015-10-28 11:14:51.348519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.3ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:14:51.357741"], ["updated_at", "2015-10-28 11:14:51.357741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 11:14:51.370168"], ["updated_at", "2015-10-28 11:14:51.370168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:14:51.379442"], ["updated_at", "2015-10-28 11:14:51.379442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 11:14:51.397582"], ["updated_at", "2015-10-28 11:14:51.397582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:14:51.414426"], ["updated_at", "2015-10-28 11:14:51.414426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 11:14:51.446563"], ["updated_at", "2015-10-28 11:14:51.446563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:14:51.451472"], ["updated_at", "2015-10-28 11:14:51.451472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (1.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 11:14:51.465983"], ["updated_at", "2015-10-28 11:14:51.465983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 11:14:51.479243"], ["updated_at", "2015-10-28 11:14:51.479243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:14:51.496815"], ["updated_at", "2015-10-28 11:14:51.496815"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.5ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 11:17:19.709514"], ["updated_at", "2015-10-28 11:17:19.709514"]]  (0.7ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (9.4ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.3ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.2ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.1ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.1ms) 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'  (1.0ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (0.9ms) 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)  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 11:17:21.148100"], ["updated_at", "2015-10-28 11:17:21.148100"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.165199"], ["updated_at", "2015-10-28 11:17:21.165199"]]  (0.1ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:17:21.211426"], ["updated_at", "2015-10-28 11:17:21.211426"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:17:21.234210"], ["updated_at", "2015-10-28 11:17:21.234210"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Message Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:17:21.251886"], ["updated_at", "2015-10-28 11:17:21.251886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (2.7ms) Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.2ms)  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 11:17:21.270761"], ["updated_at", "2015-10-28 11:17:21.270761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.276884"], ["updated_at", "2015-10-28 11:17:21.276884"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.1ms) 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"]] SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 11:17:21.423008"], ["updated_at", "2015-10-28 11:17:21.423008"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.426084"], ["updated_at", "2015-10-28 11:17:21.426084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:17:21.432882"], ["updated_at", "2015-10-28 11:17:21.432882"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:17:21.442784"], ["updated_at", "2015-10-28 11:17:21.442784"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:17:21.450373"], ["updated_at", "2015-10-28 11:17:21.450373"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:17:21.457546"], ["updated_at", "2015-10-28 11:17:21.457546"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.5ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 11:17:21.464999"], ["updated_at", "2015-10-28 11:17:21.464999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:17:21.502846"], ["updated_at", "2015-10-28 11:17:21.502846"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 11:17:21.510463"], ["updated_at", "2015-10-28 11:17:21.510463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:17:21.515013"], ["updated_at", "2015-10-28 11:17:21.515013"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 11:17:21.521913"], ["updated_at", "2015-10-28 11:17:21.521913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:17:21.526219"], ["updated_at", "2015-10-28 11:17:21.526219"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 11:17:21.533413"], ["updated_at", "2015-10-28 11:17:21.533413"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:17:21.550903"], ["updated_at", "2015-10-28 11:17:21.550903"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 11:17:21.564827"], ["updated_at", "2015-10-28 11:17:21.564827"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:17:21.568551"], ["updated_at", "2015-10-28 11:17:21.568551"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:17:21.573345"], ["updated_at", "2015-10-28 11:17:21.573345"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 11:17:21.585243"], ["updated_at", "2015-10-28 11:17:21.585243"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 11:19:30.016988"], ["updated_at", "2015-10-28 11:19:30.016988"]]  (0.9ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (9.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.8ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.1ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.1ms) 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'  (0.9ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (0.9ms) 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)  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 11:19:31.476244"], ["updated_at", "2015-10-28 11:19:31.476244"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.501059"], ["updated_at", "2015-10-28 11:19:31.501059"]]  (0.0ms) 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)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:19:31.544946"], ["updated_at", "2015-10-28 11:19:31.544946"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:19:31.567051"], ["updated_at", "2015-10-28 11:19:31.567051"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Message Load (0.0ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:19:31.583516"], ["updated_at", "2015-10-28 11:19:31.583516"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.2ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (5.7ms) Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.6ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 11:19:31.604778"], ["updated_at", "2015-10-28 11:19:31.604778"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.607715"], ["updated_at", "2015-10-28 11:19:31.607715"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.1ms) 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"]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 11:19:31.763266"], ["updated_at", "2015-10-28 11:19:31.763266"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.766252"], ["updated_at", "2015-10-28 11:19:31.766252"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:19:31.772752"], ["updated_at", "2015-10-28 11:19:31.772752"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.2ms  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:19:31.781795"], ["updated_at", "2015-10-28 11:19:31.781795"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:19:31.789565"], ["updated_at", "2015-10-28 11:19:31.789565"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:19:31.796543"], ["updated_at", "2015-10-28 11:19:31.796543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.5ms  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 11:19:31.802733"], ["updated_at", "2015-10-28 11:19:31.802733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:19:31.838904"], ["updated_at", "2015-10-28 11:19:31.838904"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 11:19:31.847223"], ["updated_at", "2015-10-28 11:19:31.847223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:19:31.851942"], ["updated_at", "2015-10-28 11:19:31.851942"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 11:19:31.859526"], ["updated_at", "2015-10-28 11:19:31.859526"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:19:31.863718"], ["updated_at", "2015-10-28 11:19:31.863718"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 11:19:31.871221"], ["updated_at", "2015-10-28 11:19:31.871221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:19:31.896336"], ["updated_at", "2015-10-28 11:19:31.896336"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 11:19:31.903159"], ["updated_at", "2015-10-28 11:19:31.903159"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:19:31.906891"], ["updated_at", "2015-10-28 11:19:31.906891"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:19:31.911742"], ["updated_at", "2015-10-28 11:19:31.911742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 11:19:31.923453"], ["updated_at", "2015-10-28 11:19:31.923453"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 11:20:55.706071"], ["updated_at", "2015-10-28 11:20:55.706071"]]  (8.4ms) commit transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (9.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.3ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.2ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.1ms) 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'  (0.8ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (0.9ms) 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)  (0.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 11:20:57.097824"], ["updated_at", "2015-10-28 11:20:57.097824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.114533"], ["updated_at", "2015-10-28 11:20:57.114533"]]  (0.0ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:20:57.159491"], ["updated_at", "2015-10-28 11:20:57.159491"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:20:57.182024"], ["updated_at", "2015-10-28 11:20:57.182024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Message Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:20:57.198488"], ["updated_at", "2015-10-28 11:20:57.198488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (2.3ms) Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 11:20:57.214325"], ["updated_at", "2015-10-28 11:20:57.214325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.223612"], ["updated_at", "2015-10-28 11:20:57.223612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.2ms) 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"]] SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 11:20:57.380149"], ["updated_at", "2015-10-28 11:20:57.380149"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.383443"], ["updated_at", "2015-10-28 11:20:57.383443"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:20:57.390014"], ["updated_at", "2015-10-28 11:20:57.390014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.2ms  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:20:57.399356"], ["updated_at", "2015-10-28 11:20:57.399356"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:20:57.406802"], ["updated_at", "2015-10-28 11:20:57.406802"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:20:57.414029"], ["updated_at", "2015-10-28 11:20:57.414029"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.5ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 11:20:57.420463"], ["updated_at", "2015-10-28 11:20:57.420463"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:20:57.457225"], ["updated_at", "2015-10-28 11:20:57.457225"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 11:20:57.465026"], ["updated_at", "2015-10-28 11:20:57.465026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:20:57.469699"], ["updated_at", "2015-10-28 11:20:57.469699"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 11:20:57.478278"], ["updated_at", "2015-10-28 11:20:57.478278"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:20:57.482127"], ["updated_at", "2015-10-28 11:20:57.482127"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 11:20:57.490439"], ["updated_at", "2015-10-28 11:20:57.490439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:20:57.509290"], ["updated_at", "2015-10-28 11:20:57.509290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.3ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 11:20:57.523551"], ["updated_at", "2015-10-28 11:20:57.523551"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:20:57.527251"], ["updated_at", "2015-10-28 11:20:57.527251"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:20:57.532152"], ["updated_at", "2015-10-28 11:20:57.532152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 11:20:57.543149"], ["updated_at", "2015-10-28 11:20:57.543149"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 11:24:58.391173"], ["updated_at", "2015-10-28 11:24:58.391173"]]  (0.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (8.2ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.2ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.0ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.1ms) 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'  (0.8ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (0.9ms) 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)  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 11:24:59.828730"], ["updated_at", "2015-10-28 11:24:59.828730"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.845711"], ["updated_at", "2015-10-28 11:24:59.845711"]]  (0.0ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:24:59.890804"], ["updated_at", "2015-10-28 11:24:59.890804"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:24:59.913585"], ["updated_at", "2015-10-28 11:24:59.913585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Message Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:24:59.932035"], ["updated_at", "2015-10-28 11:24:59.932035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.4ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (2.5ms) Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.6ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 11:24:59.952746"], ["updated_at", "2015-10-28 11:24:59.952746"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.955643"], ["updated_at", "2015-10-28 11:24:59.955643"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.1ms) 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"]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 11:25:00.112050"], ["updated_at", "2015-10-28 11:25:00.112050"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.115319"], ["updated_at", "2015-10-28 11:25:00.115319"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:25:00.121831"], ["updated_at", "2015-10-28 11:25:00.121831"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.4ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:25:00.131569"], ["updated_at", "2015-10-28 11:25:00.131569"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:25:00.139662"], ["updated_at", "2015-10-28 11:25:00.139662"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:25:00.146827"], ["updated_at", "2015-10-28 11:25:00.146827"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.5ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 11:25:00.153558"], ["updated_at", "2015-10-28 11:25:00.153558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:25:00.193979"], ["updated_at", "2015-10-28 11:25:00.193979"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 11:25:00.201660"], ["updated_at", "2015-10-28 11:25:00.201660"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:25:00.206250"], ["updated_at", "2015-10-28 11:25:00.206250"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 11:25:00.213050"], ["updated_at", "2015-10-28 11:25:00.213050"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:25:00.217050"], ["updated_at", "2015-10-28 11:25:00.217050"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 11:25:00.225619"], ["updated_at", "2015-10-28 11:25:00.225619"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:25:00.250316"], ["updated_at", "2015-10-28 11:25:00.250316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 11:25:00.256434"], ["updated_at", "2015-10-28 11:25:00.256434"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 11:25:00.262137"], ["updated_at", "2015-10-28 11:25:00.262137"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:25:00.264767"], ["updated_at", "2015-10-28 11:25:00.264767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:25:00.268443"], ["updated_at", "2015-10-28 11:25:00.268443"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 11:25:00.271700"], ["updated_at", "2015-10-28 11:25:00.271700"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:25:00.275948"], ["updated_at", "2015-10-28 11:25:00.275948"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 11:25:00.290642"], ["updated_at", "2015-10-28 11:25:00.290642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 11:28:50.189163"], ["updated_at", "2015-10-28 11:28:50.189163"]]  (8.3ms) commit transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (9.2ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.2ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.1ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.8ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.1ms) 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'  (0.8ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (0.9ms) 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)  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 11:28:51.611141"], ["updated_at", "2015-10-28 11:28:51.611141"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.626588"], ["updated_at", "2015-10-28 11:28:51.626588"]]  (0.0ms) 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)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:28:51.670568"], ["updated_at", "2015-10-28 11:28:51.670568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:28:51.691403"], ["updated_at", "2015-10-28 11:28:51.691403"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.2ms) 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]] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Message Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:28:51.709900"], ["updated_at", "2015-10-28 11:28:51.709900"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Message Load (0.1ms) 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 7ms (ActiveRecord: 0.4ms)  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 11:28:51.729804"], ["updated_at", "2015-10-28 11:28:51.729804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.734051"], ["updated_at", "2015-10-28 11:28:51.734051"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.1ms) 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"]] SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 11:28:51.885504"], ["updated_at", "2015-10-28 11:28:51.885504"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.888640"], ["updated_at", "2015-10-28 11:28:51.888640"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:28:51.895070"], ["updated_at", "2015-10-28 11:28:51.895070"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.8ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:28:51.905860"], ["updated_at", "2015-10-28 11:28:51.905860"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:28:51.913804"], ["updated_at", "2015-10-28 11:28:51.913804"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:28:51.921678"], ["updated_at", "2015-10-28 11:28:51.921678"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 11:28:51.930632"], ["updated_at", "2015-10-28 11:28:51.930632"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:28:51.966099"], ["updated_at", "2015-10-28 11:28:51.966099"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 11:28:51.973478"], ["updated_at", "2015-10-28 11:28:51.973478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:28:51.978048"], ["updated_at", "2015-10-28 11:28:51.978048"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 11:28:51.986923"], ["updated_at", "2015-10-28 11:28:51.986923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:28:51.992348"], ["updated_at", "2015-10-28 11:28:51.992348"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.3ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 11:28:52.008297"], ["updated_at", "2015-10-28 11:28:52.008297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:28:52.025641"], ["updated_at", "2015-10-28 11:28:52.025641"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 11:28:52.028660"], ["updated_at", "2015-10-28 11:28:52.028660"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 11:28:52.036173"], ["updated_at", "2015-10-28 11:28:52.036173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:28:52.040102"], ["updated_at", "2015-10-28 11:28:52.040102"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:28:52.046098"], ["updated_at", "2015-10-28 11:28:52.046098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 11:28:52.054436"], ["updated_at", "2015-10-28 11:28:52.054436"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:28:52.058641"], ["updated_at", "2015-10-28 11:28:52.058641"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 11:28:52.069859"], ["updated_at", "2015-10-28 11:28:52.069859"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 11:29:09.514879"], ["updated_at", "2015-10-28 11:29:09.514879"]]  (8.0ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.0ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.8ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.0ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.1ms) 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'  (0.8ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (1.1ms) 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)  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 11:29:10.948077"], ["updated_at", "2015-10-28 11:29:10.948077"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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:10.964606"], ["updated_at", "2015-10-28 11:29:10.964606"]]  (0.0ms) 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)  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:29:11.015475"], ["updated_at", "2015-10-28 11:29:11.015475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:29:11.047590"], ["updated_at", "2015-10-28 11:29:11.047590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Message Load (0.2ms) 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)  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:29:11.075159"], ["updated_at", "2015-10-28 11:29:11.075159"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Message Load (0.0ms) 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)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 11:29:11.088521"], ["updated_at", "2015-10-28 11:29:11.088521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.091818"], ["updated_at", "2015-10-28 11:29:11.091818"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.2ms) 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"]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 11:29:11.241294"], ["updated_at", "2015-10-28 11:29:11.241294"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.244569"], ["updated_at", "2015-10-28 11:29:11.244569"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:29:11.252144"], ["updated_at", "2015-10-28 11:29:11.252144"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:29:11.262831"], ["updated_at", "2015-10-28 11:29:11.262831"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:29:11.271127"], ["updated_at", "2015-10-28 11:29:11.271127"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:29:11.278550"], ["updated_at", "2015-10-28 11:29:11.278550"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.7ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 11:29:11.287594"], ["updated_at", "2015-10-28 11:29:11.287594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:29:11.325254"], ["updated_at", "2015-10-28 11:29:11.325254"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 11:29:11.335324"], ["updated_at", "2015-10-28 11:29:11.335324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:29:11.340886"], ["updated_at", "2015-10-28 11:29:11.340886"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 11:29:11.355744"], ["updated_at", "2015-10-28 11:29:11.355744"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:29:11.359924"], ["updated_at", "2015-10-28 11:29:11.359924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 11:29:11.368762"], ["updated_at", "2015-10-28 11:29:11.368762"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:29:11.389141"], ["updated_at", "2015-10-28 11:29:11.389141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 11:29:11.395190"], ["updated_at", "2015-10-28 11:29:11.395190"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 11:29:11.407521"], ["updated_at", "2015-10-28 11:29:11.407521"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:29:11.410245"], ["updated_at", "2015-10-28 11:29:11.410245"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:29:11.414312"], ["updated_at", "2015-10-28 11:29:11.414312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 11:29:11.418273"], ["updated_at", "2015-10-28 11:29:11.418273"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:29:11.422468"], ["updated_at", "2015-10-28 11:29:11.422468"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 11:29:11.438159"], ["updated_at", "2015-10-28 11:29:11.438159"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (2.1ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) rollback transaction NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 11:43:49.646099"], ["updated_at", "2015-10-28 11:43:49.646099"]]  (0.7ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (9.0ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.3ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.3ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.1ms) 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'  (0.9ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (0.9ms) 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)  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 11:43:51.050237"], ["updated_at", "2015-10-28 11:43:51.050237"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.064207"], ["updated_at", "2015-10-28 11:43:51.064207"]]  (0.0ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:43:51.114538"], ["updated_at", "2015-10-28 11:43:51.114538"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:43:51.134954"], ["updated_at", "2015-10-28 11:43:51.134954"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Message Load (0.0ms) 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)  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:43:51.152890"], ["updated_at", "2015-10-28 11:43:51.152890"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.6ms) 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]] SQL (0.3ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (5.4ms) Completed 500 Internal Server Error in 13ms (ActiveRecord: 1.2ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 11:43:51.175923"], ["updated_at", "2015-10-28 11:43:51.175923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.179506"], ["updated_at", "2015-10-28 11:43:51.179506"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.1ms) 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"]] SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.2ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 11:43:51.336464"], ["updated_at", "2015-10-28 11:43:51.336464"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.339862"], ["updated_at", "2015-10-28 11:43:51.339862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:43:51.347673"], ["updated_at", "2015-10-28 11:43:51.347673"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.2ms  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:43:51.357081"], ["updated_at", "2015-10-28 11:43:51.357081"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.7ms  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:43:51.364607"], ["updated_at", "2015-10-28 11:43:51.364607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:43:51.371792"], ["updated_at", "2015-10-28 11:43:51.371792"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 11:43:51.379766"], ["updated_at", "2015-10-28 11:43:51.379766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:43:51.420728"], ["updated_at", "2015-10-28 11:43:51.420728"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 11:43:51.428435"], ["updated_at", "2015-10-28 11:43:51.428435"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:43:51.433032"], ["updated_at", "2015-10-28 11:43:51.433032"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 11:43:51.440662"], ["updated_at", "2015-10-28 11:43:51.440662"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:43:51.445097"], ["updated_at", "2015-10-28 11:43:51.445097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 11:43:51.453218"], ["updated_at", "2015-10-28 11:43:51.453218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:43:51.477137"], ["updated_at", "2015-10-28 11:43:51.477137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 11:43:51.485094"], ["updated_at", "2015-10-28 11:43:51.485094"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 11:43:51.491229"], ["updated_at", "2015-10-28 11:43:51.491229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:43:51.494081"], ["updated_at", "2015-10-28 11:43:51.494081"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:43:51.497497"], ["updated_at", "2015-10-28 11:43:51.497497"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 11:43:51.501137"], ["updated_at", "2015-10-28 11:43:51.501137"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:43:51.505673"], ["updated_at", "2015-10-28 11:43:51.505673"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 11:43:51.520359"], ["updated_at", "2015-10-28 11:43:51.520359"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 11:44:06.260431"], ["updated_at", "2015-10-28 11:44:06.260431"]]  (8.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (9.2ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.1ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.9ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.1ms) 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'  (0.8ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (0.9ms) 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)  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 11:44:07.665628"], ["updated_at", "2015-10-28 11:44:07.665628"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.679612"], ["updated_at", "2015-10-28 11:44:07.679612"]]  (0.1ms) 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)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:44:07.723489"], ["updated_at", "2015-10-28 11:44:07.723489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:44:07.744445"], ["updated_at", "2015-10-28 11:44:07.744445"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Message Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:44:07.762137"], ["updated_at", "2015-10-28 11:44:07.762137"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.2ms) 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]] SQL (0.3ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Message Load (0.1ms) 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 11ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 11:44:07.784122"], ["updated_at", "2015-10-28 11:44:07.784122"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.787330"], ["updated_at", "2015-10-28 11:44:07.787330"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.1ms) 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"]] SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.2ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 11:44:07.943837"], ["updated_at", "2015-10-28 11:44:07.943837"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.948284"], ["updated_at", "2015-10-28 11:44:07.948284"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:44:07.957461"], ["updated_at", "2015-10-28 11:44:07.957461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.7ms  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:44:07.970388"], ["updated_at", "2015-10-28 11:44:07.970388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.0ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:44:07.981354"], ["updated_at", "2015-10-28 11:44:07.981354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:44:07.993617"], ["updated_at", "2015-10-28 11:44:07.993617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.9ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 11:44:08.008863"], ["updated_at", "2015-10-28 11:44:08.008863"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:44:08.052484"], ["updated_at", "2015-10-28 11:44:08.052484"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (1.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 11:44:08.071711"], ["updated_at", "2015-10-28 11:44:08.071711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:44:08.076641"], ["updated_at", "2015-10-28 11:44:08.076641"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 11:44:08.084045"], ["updated_at", "2015-10-28 11:44:08.084045"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:44:08.088210"], ["updated_at", "2015-10-28 11:44:08.088210"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 11:44:08.099730"], ["updated_at", "2015-10-28 11:44:08.099730"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:44:08.120906"], ["updated_at", "2015-10-28 11:44:08.120906"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 11:44:08.123840"], ["updated_at", "2015-10-28 11:44:08.123840"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 11:44:08.129157"], ["updated_at", "2015-10-28 11:44:08.129157"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:44:08.132058"], ["updated_at", "2015-10-28 11:44:08.132058"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:44:08.135337"], ["updated_at", "2015-10-28 11:44:08.135337"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 11:44:08.139160"], ["updated_at", "2015-10-28 11:44:08.139160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:44:08.145173"], ["updated_at", "2015-10-28 11:44:08.145173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 11:44:08.164285"], ["updated_at", "2015-10-28 11:44:08.164285"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 11:45:19.911780"], ["updated_at", "2015-10-28 11:45:19.911780"]]  (8.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (9.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.2ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.8ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.8ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.1ms) 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'  (0.8ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (0.9ms) 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)  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 11:45:21.302285"], ["updated_at", "2015-10-28 11:45:21.302285"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.316706"], ["updated_at", "2015-10-28 11:45:21.316706"]]  (0.0ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:45:21.358704"], ["updated_at", "2015-10-28 11:45:21.358704"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/index.json.jbuilder (7.0ms) Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.3ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 11:45:21.375759"], ["updated_at", "2015-10-28 11:45:21.375759"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.378997"], ["updated_at", "2015-10-28 11:45:21.378997"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.2ms) 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]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (2.5ms) Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 11:45:21.392365"], ["updated_at", "2015-10-28 11:45:21.392365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.396431"], ["updated_at", "2015-10-28 11:45:21.396431"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Message Load (0.0ms) 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)  (1.5ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:45:21.418270"], ["updated_at", "2015-10-28 11:45:21.418270"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.2ms) 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"]] SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.2ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:45:21.551593"], ["updated_at", "2015-10-28 11:45:21.551593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (8.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 11:45:21.567267"], ["updated_at", "2015-10-28 11:45:21.567267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.570732"], ["updated_at", "2015-10-28 11:45:21.570732"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 11:45:21.576666"], ["updated_at", "2015-10-28 11:45:21.576666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.579810"], ["updated_at", "2015-10-28 11:45:21.579810"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 11:45:21.584123"], ["updated_at", "2015-10-28 11:45:21.584123"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.587508"], ["updated_at", "2015-10-28 11:45:21.587508"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 11:45:21.591507"], ["updated_at", "2015-10-28 11:45:21.591507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.594835"], ["updated_at", "2015-10-28 11:45:21.594835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:45:21.598707"], ["updated_at", "2015-10-28 11:45:21.598707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 11:45:21.633172"], ["updated_at", "2015-10-28 11:45:21.633172"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:45:21.637603"], ["updated_at", "2015-10-28 11:45:21.637603"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 11:45:21.645097"], ["updated_at", "2015-10-28 11:45:21.645097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:45:21.649368"], ["updated_at", "2015-10-28 11:45:21.649368"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 11:45:21.656718"], ["updated_at", "2015-10-28 11:45:21.656718"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:45:21.660878"], ["updated_at", "2015-10-28 11:45:21.660878"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 11:45:21.680754"], ["updated_at", "2015-10-28 11:45:21.680754"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:45:21.687502"], ["updated_at", "2015-10-28 11:45:21.687502"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:45:21.690606"], ["updated_at", "2015-10-28 11:45:21.690606"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 11:45:21.693504"], ["updated_at", "2015-10-28 11:45:21.693504"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 11:45:21.699391"], ["updated_at", "2015-10-28 11:45:21.699391"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:45:21.702213"], ["updated_at", "2015-10-28 11:45:21.702213"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 11:45:21.706224"], ["updated_at", "2015-10-28 11:45:21.706224"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:45:21.714691"], ["updated_at", "2015-10-28 11:45:21.714691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 11:46:02.313604"], ["updated_at", "2015-10-28 11:46:02.313604"]]  (9.1ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (9.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.2ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.2ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.1ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.1ms) 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'  (0.8ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (0.8ms) 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)  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 11:46:03.655620"], ["updated_at", "2015-10-28 11:46:03.655620"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.665617"], ["updated_at", "2015-10-28 11:46:03.665617"]]  (0.0ms) 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)  (8.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:46:03.710215"], ["updated_at", "2015-10-28 11:46:03.710215"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/index.json.jbuilder (7.4ms) Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.4ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 11:46:03.727488"], ["updated_at", "2015-10-28 11:46:03.727488"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.730427"], ["updated_at", "2015-10-28 11:46:03.730427"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (2.5ms) Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.2ms)  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 11:46:03.743977"], ["updated_at", "2015-10-28 11:46:03.743977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.748672"], ["updated_at", "2015-10-28 11:46:03.748672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Message Load (0.0ms) 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)  (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:46:03.769125"], ["updated_at", "2015-10-28 11:46:03.769125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.1ms) 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"]] SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:46:03.898657"], ["updated_at", "2015-10-28 11:46:03.898657"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (7.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 11:46:03.911903"], ["updated_at", "2015-10-28 11:46:03.911903"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.914999"], ["updated_at", "2015-10-28 11:46:03.914999"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.1ms  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 11:46:03.920624"], ["updated_at", "2015-10-28 11:46:03.920624"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.923779"], ["updated_at", "2015-10-28 11:46:03.923779"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 11:46:03.927992"], ["updated_at", "2015-10-28 11:46:03.927992"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.930967"], ["updated_at", "2015-10-28 11:46:03.930967"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 11:46:03.935518"], ["updated_at", "2015-10-28 11:46:03.935518"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.938352"], ["updated_at", "2015-10-28 11:46:03.938352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.5ms  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:46:03.941928"], ["updated_at", "2015-10-28 11:46:03.941928"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 11:46:03.975605"], ["updated_at", "2015-10-28 11:46:03.975605"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:46:03.980013"], ["updated_at", "2015-10-28 11:46:03.980013"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 11:46:03.987857"], ["updated_at", "2015-10-28 11:46:03.987857"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:46:03.992326"], ["updated_at", "2015-10-28 11:46:03.992326"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 11:46:03.999498"], ["updated_at", "2015-10-28 11:46:03.999498"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:46:04.004101"], ["updated_at", "2015-10-28 11:46:04.004101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 11:46:04.024344"], ["updated_at", "2015-10-28 11:46:04.024344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:46:04.031640"], ["updated_at", "2015-10-28 11:46:04.031640"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:46:04.034627"], ["updated_at", "2015-10-28 11:46:04.034627"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 11:46:04.037512"], ["updated_at", "2015-10-28 11:46:04.037512"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 11:46:04.043557"], ["updated_at", "2015-10-28 11:46:04.043557"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:46:04.046422"], ["updated_at", "2015-10-28 11:46:04.046422"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 11:46:04.050630"], ["updated_at", "2015-10-28 11:46:04.050630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:46:04.059276"], ["updated_at", "2015-10-28 11:46:04.059276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 11:48:49.328413"], ["updated_at", "2015-10-28 11:48:49.328413"]]  (0.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (8.2ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.8ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.8ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.1ms) 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'  (0.8ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (1.0ms) 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)  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 11:48:50.749537"], ["updated_at", "2015-10-28 11:48:50.749537"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.766396"], ["updated_at", "2015-10-28 11:48:50.766396"]]  (0.1ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:48:50.819444"], ["updated_at", "2015-10-28 11:48:50.819444"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/index.json.jbuilder (9.9ms) Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.4ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 11:48:50.842508"], ["updated_at", "2015-10-28 11:48:50.842508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.846668"], ["updated_at", "2015-10-28 11:48:50.846668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.2ms) 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]] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Message Load (0.1ms) 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.3ms)  (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 11:48:50.868801"], ["updated_at", "2015-10-28 11:48:50.868801"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.878224"], ["updated_at", "2015-10-28 11:48:50.878224"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Message Load (0.0ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:48:50.894178"], ["updated_at", "2015-10-28 11:48:50.894178"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.2ms) 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"]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:48:51.061317"], ["updated_at", "2015-10-28 11:48:51.061317"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 11:48:51.068166"], ["updated_at", "2015-10-28 11:48:51.068166"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.071835"], ["updated_at", "2015-10-28 11:48:51.071835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 11:48:51.077983"], ["updated_at", "2015-10-28 11:48:51.077983"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.080970"], ["updated_at", "2015-10-28 11:48:51.080970"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 11:48:51.084949"], ["updated_at", "2015-10-28 11:48:51.084949"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.088268"], ["updated_at", "2015-10-28 11:48:51.088268"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 11:48:51.092538"], ["updated_at", "2015-10-28 11:48:51.092538"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.095465"], ["updated_at", "2015-10-28 11:48:51.095465"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.5ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:48:51.099159"], ["updated_at", "2015-10-28 11:48:51.099159"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 11:48:51.145976"], ["updated_at", "2015-10-28 11:48:51.145976"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:48:51.151220"], ["updated_at", "2015-10-28 11:48:51.151220"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 11:48:51.160941"], ["updated_at", "2015-10-28 11:48:51.160941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:48:51.166703"], ["updated_at", "2015-10-28 11:48:51.166703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 11:48:51.175250"], ["updated_at", "2015-10-28 11:48:51.175250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:48:51.183344"], ["updated_at", "2015-10-28 11:48:51.183344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 11:48:51.213866"], ["updated_at", "2015-10-28 11:48:51.213866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:48:51.217652"], ["updated_at", "2015-10-28 11:48:51.217652"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:48:51.221259"], ["updated_at", "2015-10-28 11:48:51.221259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 11:48:51.225478"], ["updated_at", "2015-10-28 11:48:51.225478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 11:48:51.233124"], ["updated_at", "2015-10-28 11:48:51.233124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:48:51.238798"], ["updated_at", "2015-10-28 11:48:51.238798"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 11:48:51.244923"], ["updated_at", "2015-10-28 11:48:51.244923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:48:51.262494"], ["updated_at", "2015-10-28 11:48:51.262494"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 11:51:35.891262"], ["updated_at", "2015-10-28 11:51:35.891262"]]  (0.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (9.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.2ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.2ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.8ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.1ms) 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'  (0.7ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (0.9ms) 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)  (0.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 11:51:37.549136"], ["updated_at", "2015-10-28 11:51:37.549136"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.562609"], ["updated_at", "2015-10-28 11:51:37.562609"]]  (0.0ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:51:37.609965"], ["updated_at", "2015-10-28 11:51:37.609965"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/index.json.jbuilder (8.3ms) Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.4ms)  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 11:51:37.628715"], ["updated_at", "2015-10-28 11:51:37.628715"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.631863"], ["updated_at", "2015-10-28 11:51:37.631863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.0ms) 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 10ms (ActiveRecord: 0.3ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 11:51:37.652035"], ["updated_at", "2015-10-28 11:51:37.652035"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.655877"], ["updated_at", "2015-10-28 11:51:37.655877"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.2ms) 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]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.0ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:51:37.676998"], ["updated_at", "2015-10-28 11:51:37.676998"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.2ms) 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"]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.3ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:51:37.839274"], ["updated_at", "2015-10-28 11:51:37.839274"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 11:51:37.845995"], ["updated_at", "2015-10-28 11:51:37.845995"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.849253"], ["updated_at", "2015-10-28 11:51:37.849253"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.7ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 11:51:37.856629"], ["updated_at", "2015-10-28 11:51:37.856629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.860170"], ["updated_at", "2015-10-28 11:51:37.860170"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.7ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 11:51:37.864937"], ["updated_at", "2015-10-28 11:51:37.864937"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.867969"], ["updated_at", "2015-10-28 11:51:37.867969"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 11:51:37.872418"], ["updated_at", "2015-10-28 11:51:37.872418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.875721"], ["updated_at", "2015-10-28 11:51:37.875721"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.7ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:51:37.881209"], ["updated_at", "2015-10-28 11:51:37.881209"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 11:51:37.923834"], ["updated_at", "2015-10-28 11:51:37.923834"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:51:37.928228"], ["updated_at", "2015-10-28 11:51:37.928228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 11:51:37.938300"], ["updated_at", "2015-10-28 11:51:37.938300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:51:37.943506"], ["updated_at", "2015-10-28 11:51:37.943506"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.2ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 11:51:37.957944"], ["updated_at", "2015-10-28 11:51:37.957944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:51:37.963163"], ["updated_at", "2015-10-28 11:51:37.963163"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 11:51:37.984045"], ["updated_at", "2015-10-28 11:51:37.984045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:51:37.988954"], ["updated_at", "2015-10-28 11:51:37.988954"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:51:37.993227"], ["updated_at", "2015-10-28 11:51:37.993227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 11:51:37.999034"], ["updated_at", "2015-10-28 11:51:37.999034"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 11:51:38.011579"], ["updated_at", "2015-10-28 11:51:38.011579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:51:38.014448"], ["updated_at", "2015-10-28 11:51:38.014448"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 11:51:38.019093"], ["updated_at", "2015-10-28 11:51:38.019093"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:51:38.028637"], ["updated_at", "2015-10-28 11:51:38.028637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.5ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 11:52:43.476545"], ["updated_at", "2015-10-28 11:52:43.476545"]]  (8.9ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.8ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.1ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.1ms) 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'  (0.7ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (1.2ms) 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)  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 11:52:44.882053"], ["updated_at", "2015-10-28 11:52:44.882053"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (9.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:52:44.920965"], ["updated_at", "2015-10-28 11:52:44.920965"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 11:52:44.927014"], ["updated_at", "2015-10-28 11:52:44.927014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:52:44.937464"], ["updated_at", "2015-10-28 11:52:44.937464"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 11:52:44.943048"], ["updated_at", "2015-10-28 11:52:44.943048"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 11:53:14.541446"], ["updated_at", "2015-10-28 11:53:14.541446"]]  (9.1ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (8.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.1ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.1ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.1ms) 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'  (0.9ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (0.8ms) 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)  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 11:53:15.897780"], ["updated_at", "2015-10-28 11:53:15.897780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (9.2ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:53:15.940321"], ["updated_at", "2015-10-28 11:53:15.940321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 11:53:15.946171"], ["updated_at", "2015-10-28 11:53:15.946171"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:53:15.955530"], ["updated_at", "2015-10-28 11:53:15.955530"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 11:53:15.960877"], ["updated_at", "2015-10-28 11:53:15.960877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.0ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.9ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.1ms) 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'  (0.9ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (0.9ms) 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)  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 11:55:43.732958"], ["updated_at", "2015-10-28 11:55:43.732958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 11:55:43.751631"], ["updated_at", "2015-10-28 11:55:43.751631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) 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.0ms | ActiveRecord: 0.0ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 11:55:43.796410"], ["updated_at", "2015-10-28 11:55:43.796410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 11:55:43.799470"], ["updated_at", "2015-10-28 11:55:43.799470"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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)  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:55:43.825309"], ["updated_at", "2015-10-28 11:55:43.825309"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.828385"], ["updated_at", "2015-10-28 11:55:43.828385"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.0ms) 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 (2.5ms) Completed 200 OK in 9ms (Views: 3.9ms | ActiveRecord: 0.2ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 11:55:43.845527"], ["updated_at", "2015-10-28 11:55:43.845527"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 11:55:43.855902"], ["updated_at", "2015-10-28 11:55:43.855902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.0ms) 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.1ms | ActiveRecord: 0.2ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 11:55:43.870037"], ["updated_at", "2015-10-28 11:55:43.870037"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 11:55:43.873638"], ["updated_at", "2015-10-28 11:55:43.873638"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.1ms) 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"]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.8ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.0ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.1ms) 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'  (1.0ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (1.1ms) 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)  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 13:27:04.893570"], ["updated_at", "2015-10-28 13:27:04.893570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:27:04.921863"], ["updated_at", "2015-10-28 13:27:04.921863"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) 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: 8.7ms | ActiveRecord: 0.0ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 13:27:04.965922"], ["updated_at", "2015-10-28 13:27:04.965922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:27:04.969382"], ["updated_at", "2015-10-28 13:27:04.969382"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.2ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:27:04.997014"], ["updated_at", "2015-10-28 13:27:04.997014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.002226"], ["updated_at", "2015-10-28 13:27:05.002226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.3ms) 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]] Message Load (0.2ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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 (5.7ms) Completed 200 OK in 18ms (Views: 7.8ms | ActiveRecord: 0.5ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 13:27:05.029074"], ["updated_at", "2015-10-28 13:27:05.029074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:27:05.032753"], ["updated_at", "2015-10-28 13:27:05.032753"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.0ms) 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.8ms) Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.2ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 13:27:05.046078"], ["updated_at", "2015-10-28 13:27:05.046078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:27:05.049533"], ["updated_at", "2015-10-28 13:27:05.049533"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.1ms) 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"]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:27:05.213658"], ["updated_at", "2015-10-28 13:27:05.213658"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.216452"], ["updated_at", "2015-10-28 13:27:05.216452"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:27:05.223608"], ["updated_at", "2015-10-28 13:27:05.223608"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.226968"], ["updated_at", "2015-10-28 13:27:05.226968"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 0.8ms  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:27:05.234550"], ["updated_at", "2015-10-28 13:27:05.234550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.237899"], ["updated_at", "2015-10-28 13:27:05.237899"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 0.3ms  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:27:05.244309"], ["updated_at", "2015-10-28 13:27:05.244309"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.247375"], ["updated_at", "2015-10-28 13:27:05.247375"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 0.3ms  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:27:05.253541"], ["updated_at", "2015-10-28 13:27:05.253541"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.258689"], ["updated_at", "2015-10-28 13:27:05.258689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 0.5ms  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 13:27:05.266462"], ["updated_at", "2015-10-28 13:27:05.266462"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:27:05.304837"], ["updated_at", "2015-10-28 13:27:05.304837"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 13:27:05.313306"], ["updated_at", "2015-10-28 13:27:05.313306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:27:05.320890"], ["updated_at", "2015-10-28 13:27:05.320890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 13:27:05.336346"], ["updated_at", "2015-10-28 13:27:05.336346"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:27:05.340395"], ["updated_at", "2015-10-28 13:27:05.340395"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 13:27:05.349388"], ["updated_at", "2015-10-28 13:27:05.349388"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:27:05.369322"], ["updated_at", "2015-10-28 13:27:05.369322"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 13:27:05.372870"], ["updated_at", "2015-10-28 13:27:05.372870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:27:05.381483"], ["updated_at", "2015-10-28 13:27:05.381483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:27:05.387379"], ["updated_at", "2015-10-28 13:27:05.387379"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 13:27:05.391459"], ["updated_at", "2015-10-28 13:27:05.391459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:27:05.395577"], ["updated_at", "2015-10-28 13:27:05.395577"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:27:05.399763"], ["updated_at", "2015-10-28 13:27:05.399763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 13:27:05.403030"], ["updated_at", "2015-10-28 13:27:05.403030"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:27:05.405416"], ["updated_at", "2015-10-28 13:27:05.405416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 13:27:05.410113"], ["updated_at", "2015-10-28 13:27:05.410113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:27:05.421971"], ["updated_at", "2015-10-28 13:27:05.421971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.9ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.0ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.1ms) 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'  (0.8ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (0.9ms) 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)  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 13:29:21.285729"], ["updated_at", "2015-10-28 13:29:21.285729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:29:21.305627"], ["updated_at", "2015-10-28 13:29:21.305627"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 13:29:21.355048"], ["updated_at", "2015-10-28 13:29:21.355048"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:29:21.358659"], ["updated_at", "2015-10-28 13:29:21.358659"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:29:21.383746"], ["updated_at", "2015-10-28 13:29:21.383746"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.386668"], ["updated_at", "2015-10-28 13:29:21.386668"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.2ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.0ms) 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 (2.3ms) Completed 200 OK in 10ms (Views: 4.3ms | ActiveRecord: 0.3ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 13:29:21.406160"], ["updated_at", "2015-10-28 13:29:21.406160"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:29:21.412049"], ["updated_at", "2015-10-28 13:29:21.412049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.0ms) 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.9ms) Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.3ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 13:29:21.432682"], ["updated_at", "2015-10-28 13:29:21.432682"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:29:21.435977"], ["updated_at", "2015-10-28 13:29:21.435977"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.2ms) 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"]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:29:21.593768"], ["updated_at", "2015-10-28 13:29:21.593768"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.596406"], ["updated_at", "2015-10-28 13:29:21.596406"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:29:21.602849"], ["updated_at", "2015-10-28 13:29:21.602849"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.606024"], ["updated_at", "2015-10-28 13:29:21.606024"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 1.2ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:29:21.614270"], ["updated_at", "2015-10-28 13:29:21.614270"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.617214"], ["updated_at", "2015-10-28 13:29:21.617214"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 0.3ms  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:29:21.623070"], ["updated_at", "2015-10-28 13:29:21.623070"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.625563"], ["updated_at", "2015-10-28 13:29:21.625563"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 0.3ms  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:29:21.630762"], ["updated_at", "2015-10-28 13:29:21.630762"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.633212"], ["updated_at", "2015-10-28 13:29:21.633212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 0.4ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 13:29:21.641256"], ["updated_at", "2015-10-28 13:29:21.641256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:29:21.677684"], ["updated_at", "2015-10-28 13:29:21.677684"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 13:29:21.685725"], ["updated_at", "2015-10-28 13:29:21.685725"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:29:21.692419"], ["updated_at", "2015-10-28 13:29:21.692419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 13:29:21.702330"], ["updated_at", "2015-10-28 13:29:21.702330"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:29:21.706684"], ["updated_at", "2015-10-28 13:29:21.706684"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 13:29:21.723334"], ["updated_at", "2015-10-28 13:29:21.723334"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:29:21.742249"], ["updated_at", "2015-10-28 13:29:21.742249"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 13:29:21.745619"], ["updated_at", "2015-10-28 13:29:21.745619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:29:21.751036"], ["updated_at", "2015-10-28 13:29:21.751036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:29:21.755319"], ["updated_at", "2015-10-28 13:29:21.755319"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 13:29:21.758607"], ["updated_at", "2015-10-28 13:29:21.758607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:29:21.768667"], ["updated_at", "2015-10-28 13:29:21.768667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:29:21.774028"], ["updated_at", "2015-10-28 13:29:21.774028"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 13:29:21.777697"], ["updated_at", "2015-10-28 13:29:21.777697"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:29:21.780201"], ["updated_at", "2015-10-28 13:29:21.780201"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 13:29:21.785233"], ["updated_at", "2015-10-28 13:29:21.785233"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:29:21.795571"], ["updated_at", "2015-10-28 13:29:21.795571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.9ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.8ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.1ms) 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'  (0.8ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (0.9ms) 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)  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 13:30:09.381549"], ["updated_at", "2015-10-28 13:30:09.381549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:09.402763"], ["updated_at", "2015-10-28 13:30:09.402763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) 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.0ms | ActiveRecord: 0.0ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 13:30:09.450013"], ["updated_at", "2015-10-28 13:30:09.450013"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:09.453190"], ["updated_at", "2015-10-28 13:30:09.453190"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:09.478471"], ["updated_at", "2015-10-28 13:30:09.478471"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.481092"], ["updated_at", "2015-10-28 13:30:09.481092"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.0ms) 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 (2.5ms) Completed 200 OK in 9ms (Views: 4.3ms | ActiveRecord: 0.2ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 13:30:09.498566"], ["updated_at", "2015-10-28 13:30:09.498566"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:09.506352"], ["updated_at", "2015-10-28 13:30:09.506352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.0ms) 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.9ms) Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.2ms)  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 13:30:09.523831"], ["updated_at", "2015-10-28 13:30:09.523831"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:09.527181"], ["updated_at", "2015-10-28 13:30:09.527181"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.2ms) 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"]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:09.683077"], ["updated_at", "2015-10-28 13:30:09.683077"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.685607"], ["updated_at", "2015-10-28 13:30:09.685607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:09.692315"], ["updated_at", "2015-10-28 13:30:09.692315"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.695160"], ["updated_at", "2015-10-28 13:30:09.695160"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.5ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

 (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 13:30:09.727764"], ["updated_at", "2015-10-28 13:30:09.727764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:09.731401"], ["updated_at", "2015-10-28 13:30:09.731401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) SQL (0.1ms) 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: 7bit

user8

message body

 (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:09.770406"], ["updated_at", "2015-10-28 13:30:09.770406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.776247"], ["updated_at", "2015-10-28 13:30:09.776247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user9

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 13:30:09.784298"], ["updated_at", "2015-10-28 13:30:09.784298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:09.788264"], ["updated_at", "2015-10-28 13:30:09.788264"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) SQL (0.2ms) 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: 7bit

user10

message body

 (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 13:30:09.808003"], ["updated_at", "2015-10-28 13:30:09.808003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:09.815858"], ["updated_at", "2015-10-28 13:30:09.815858"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 13:30:09.825638"], ["updated_at", "2015-10-28 13:30:09.825638"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:09.834302"], ["updated_at", "2015-10-28 13:30:09.834302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 13:30:09.847246"], ["updated_at", "2015-10-28 13:30:09.847246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:09.856618"], ["updated_at", "2015-10-28 13:30:09.856618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 13:30:09.870308"], ["updated_at", "2015-10-28 13:30:09.870308"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:09.889858"], ["updated_at", "2015-10-28 13:30:09.889858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 13:30:09.893831"], ["updated_at", "2015-10-28 13:30:09.893831"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:09.897639"], ["updated_at", "2015-10-28 13:30:09.897639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.0ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:09.904718"], ["updated_at", "2015-10-28 13:30:09.904718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 13:30:09.914041"], ["updated_at", "2015-10-28 13:30:09.914041"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:09.916760"], ["updated_at", "2015-10-28 13:30:09.916760"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:09.920544"], ["updated_at", "2015-10-28 13:30:09.920544"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 13:30:09.924035"], ["updated_at", "2015-10-28 13:30:09.924035"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:09.926489"], ["updated_at", "2015-10-28 13:30:09.926489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 13:30:09.931361"], ["updated_at", "2015-10-28 13:30:09.931361"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:09.942224"], ["updated_at", "2015-10-28 13:30:09.942224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (1.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.8ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.8ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.1ms) 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'  (0.8ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (1.0ms) 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)  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 13:30:36.130261"], ["updated_at", "2015-10-28 13:30:36.130261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:36.153865"], ["updated_at", "2015-10-28 13:30:36.153865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) 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.0ms | ActiveRecord: 0.0ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 13:30:36.198843"], ["updated_at", "2015-10-28 13:30:36.198843"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:36.202174"], ["updated_at", "2015-10-28 13:30:36.202174"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:36.227466"], ["updated_at", "2015-10-28 13:30:36.227466"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.230136"], ["updated_at", "2015-10-28 13:30:36.230136"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.2ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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 (2.6ms) Completed 200 OK in 10ms (Views: 4.6ms | ActiveRecord: 0.3ms)  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 13:30:36.254417"], ["updated_at", "2015-10-28 13:30:36.254417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:36.261079"], ["updated_at", "2015-10-28 13:30:36.261079"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.2ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.0ms) 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.9ms) Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.3ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 13:30:36.274118"], ["updated_at", "2015-10-28 13:30:36.274118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:36.277175"], ["updated_at", "2015-10-28 13:30:36.277175"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.1ms) 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"]] SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:36.442453"], ["updated_at", "2015-10-28 13:30:36.442453"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.445730"], ["updated_at", "2015-10-28 13:30:36.445730"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:36.453258"], ["updated_at", "2015-10-28 13:30:36.453258"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.456375"], ["updated_at", "2015-10-28 13:30:36.456375"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.8ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 13:30:36.491299"], ["updated_at", "2015-10-28 13:30:36.491299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:36.494838"], ["updated_at", "2015-10-28 13:30:36.494838"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user8

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:36.512052"], ["updated_at", "2015-10-28 13:30:36.512052"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.514979"], ["updated_at", "2015-10-28 13:30:36.514979"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user9

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 13:30:36.521659"], ["updated_at", "2015-10-28 13:30:36.521659"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:36.524556"], ["updated_at", "2015-10-28 13:30:36.524556"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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: 7bit

user10

message body

 (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 13:30:36.533265"], ["updated_at", "2015-10-28 13:30:36.533265"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:36.568310"], ["updated_at", "2015-10-28 13:30:36.568310"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 13:30:36.577044"], ["updated_at", "2015-10-28 13:30:36.577044"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:36.581551"], ["updated_at", "2015-10-28 13:30:36.581551"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 13:30:36.589118"], ["updated_at", "2015-10-28 13:30:36.589118"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:36.593172"], ["updated_at", "2015-10-28 13:30:36.593172"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 13:30:36.602779"], ["updated_at", "2015-10-28 13:30:36.602779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:36.628077"], ["updated_at", "2015-10-28 13:30:36.628077"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 13:30:36.631883"], ["updated_at", "2015-10-28 13:30:36.631883"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:36.634511"], ["updated_at", "2015-10-28 13:30:36.634511"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:36.637852"], ["updated_at", "2015-10-28 13:30:36.637852"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 13:30:36.640955"], ["updated_at", "2015-10-28 13:30:36.640955"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:36.643235"], ["updated_at", "2015-10-28 13:30:36.643235"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:36.646920"], ["updated_at", "2015-10-28 13:30:36.646920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 13:30:36.650398"], ["updated_at", "2015-10-28 13:30:36.650398"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:36.652673"], ["updated_at", "2015-10-28 13:30:36.652673"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 13:30:36.657074"], ["updated_at", "2015-10-28 13:30:36.657074"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:36.667195"], ["updated_at", "2015-10-28 13:30:36.667195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) rollback transaction  (0.4ms) begin transaction  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.8ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.2ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.1ms) 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'  (0.9ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (1.4ms) 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)  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 13:36:08.508693"], ["updated_at", "2015-10-28 13:36:08.508693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:36:08.528423"], ["updated_at", "2015-10-28 13:36:08.528423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 13:36:08.576324"], ["updated_at", "2015-10-28 13:36:08.576324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:36:08.579597"], ["updated_at", "2015-10-28 13:36:08.579597"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:36:08.604216"], ["updated_at", "2015-10-28 13:36:08.604216"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.606849"], ["updated_at", "2015-10-28 13:36:08.606849"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.2ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.0ms) 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 (2.6ms) Completed 200 OK in 10ms (Views: 4.4ms | ActiveRecord: 0.3ms)  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 13:36:08.624760"], ["updated_at", "2015-10-28 13:36:08.624760"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:36:08.628357"], ["updated_at", "2015-10-28 13:36:08.628357"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.0ms) 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 5ms (Views: 2.0ms | ActiveRecord: 0.3ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 13:36:08.648120"], ["updated_at", "2015-10-28 13:36:08.648120"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:36:08.651164"], ["updated_at", "2015-10-28 13:36:08.651164"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.1ms) 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"]] SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:36:08.807188"], ["updated_at", "2015-10-28 13:36:08.807188"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.809861"], ["updated_at", "2015-10-28 13:36:08.809861"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:36:08.816512"], ["updated_at", "2015-10-28 13:36:08.816512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.819758"], ["updated_at", "2015-10-28 13:36:08.819758"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.4ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

 (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 13:36:08.849586"], ["updated_at", "2015-10-28 13:36:08.849586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:36:08.853406"], ["updated_at", "2015-10-28 13:36:08.853406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user8

message body

 (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:36:08.867322"], ["updated_at", "2015-10-28 13:36:08.867322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.874650"], ["updated_at", "2015-10-28 13:36:08.874650"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.0ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user9

message body

 (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 13:36:08.882643"], ["updated_at", "2015-10-28 13:36:08.882643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:36:08.885727"], ["updated_at", "2015-10-28 13:36:08.885727"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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: 7bit

user10

message body

 (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 13:36:08.895560"], ["updated_at", "2015-10-28 13:36:08.895560"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:36:08.898892"], ["updated_at", "2015-10-28 13:36:08.898892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 13:36:08.908293"], ["updated_at", "2015-10-28 13:36:08.908293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.8ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:36:08.915436"], ["updated_at", "2015-10-28 13:36:08.915436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 13:36:08.925454"], ["updated_at", "2015-10-28 13:36:08.925454"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (2.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:36:08.930916"], ["updated_at", "2015-10-28 13:36:08.930916"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 13:36:08.936776"], ["updated_at", "2015-10-28 13:36:08.936776"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:36:08.939762"], ["updated_at", "2015-10-28 13:36:08.939762"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 13:36:08.942653"], ["updated_at", "2015-10-28 13:36:08.942653"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:36:08.944849"], ["updated_at", "2015-10-28 13:36:08.944849"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:36:08.948033"], ["updated_at", "2015-10-28 13:36:08.948033"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 13:36:08.952910"], ["updated_at", "2015-10-28 13:36:08.952910"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:36:08.956130"], ["updated_at", "2015-10-28 13:36:08.956130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:36:08.959880"], ["updated_at", "2015-10-28 13:36:08.959880"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 13:36:08.965734"], ["updated_at", "2015-10-28 13:36:08.965734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:36:08.970345"], ["updated_at", "2015-10-28 13:36:08.970345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 13:36:08.976636"], ["updated_at", "2015-10-28 13:36:08.976636"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:36:08.979635"], ["updated_at", "2015-10-28 13:36:08.979635"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.8ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.1ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.1ms) 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'  (0.8ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (0.9ms) 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)  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 13:37:39.119545"], ["updated_at", "2015-10-28 13:37:39.119545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.138076"], ["updated_at", "2015-10-28 13:37:39.138076"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) 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)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 13:37:39.183402"], ["updated_at", "2015-10-28 13:37:39.183402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.186366"], ["updated_at", "2015-10-28 13:37:39.186366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:37:39.214019"], ["updated_at", "2015-10-28 13:37:39.214019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.217414"], ["updated_at", "2015-10-28 13:37:39.217414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.2ms) 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]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.0ms) 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 (2.0ms) Completed 200 OK in 9ms (Views: 3.7ms | ActiveRecord: 0.3ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 13:37:39.235953"], ["updated_at", "2015-10-28 13:37:39.235953"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.245817"], ["updated_at", "2015-10-28 13:37:39.245817"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.0ms) 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 (2.0ms) Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.3ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 13:37:39.259149"], ["updated_at", "2015-10-28 13:37:39.259149"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.262604"], ["updated_at", "2015-10-28 13:37:39.262604"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.1ms) 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"]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:37:39.426146"], ["updated_at", "2015-10-28 13:37:39.426146"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.428834"], ["updated_at", "2015-10-28 13:37:39.428834"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:37:39.435305"], ["updated_at", "2015-10-28 13:37:39.435305"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.438260"], ["updated_at", "2015-10-28 13:37:39.438260"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.4ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

 (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 13:37:39.470863"], ["updated_at", "2015-10-28 13:37:39.470863"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.474675"], ["updated_at", "2015-10-28 13:37:39.474675"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user8

message body

 (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:37:39.491359"], ["updated_at", "2015-10-28 13:37:39.491359"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.493903"], ["updated_at", "2015-10-28 13:37:39.493903"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user9

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 13:37:39.500590"], ["updated_at", "2015-10-28 13:37:39.500590"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.503480"], ["updated_at", "2015-10-28 13:37:39.503480"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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: 7bit

user10

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 13:37:39.512130"], ["updated_at", "2015-10-28 13:37:39.512130"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:37:39.519689"], ["updated_at", "2015-10-28 13:37:39.519689"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.523480"], ["updated_at", "2015-10-28 13:37:39.523480"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:37:39.527218"], ["updated_at", "2015-10-28 13:37:39.527218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.534306"], ["updated_at", "2015-10-28 13:37:39.534306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:37:39.541380"], ["updated_at", "2015-10-28 13:37:39.541380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.544546"], ["updated_at", "2015-10-28 13:37:39.544546"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:37:39.548211"], ["updated_at", "2015-10-28 13:37:39.548211"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.551053"], ["updated_at", "2015-10-28 13:37:39.551053"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.552649"], ["updated_at", "2015-10-28 13:37:39.552649"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:37:39.555553"], ["updated_at", "2015-10-28 13:37:39.555553"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.558444"], ["updated_at", "2015-10-28 13:37:39.558444"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.560029"], ["updated_at", "2015-10-28 13:37:39.560029"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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: 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: 7bit

user16

message body

 (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:37:39.567862"], ["updated_at", "2015-10-28 13:37:39.567862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.571759"], ["updated_at", "2015-10-28 13:37:39.571759"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.574113"], ["updated_at", "2015-10-28 13:37:39.574113"]]  (0.0ms) 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] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [54089fc6-0ada-4926-9982-55b20af6b13b] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [54089fc6-0ada-4926-9982-55b20af6b13b] NotifyWith::NotificationType Load (0.0ms) 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] SQL (0.0ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user17

message body

[ActiveJob] [ActionMailer::DeliveryJob] [54089fc6-0ada-4926-9982-55b20af6b13b] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.85ms  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:37:39.604664"], ["updated_at", "2015-10-28 13:37:39.604664"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.607594"], ["updated_at", "2015-10-28 13:37:39.607594"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:37:39.609902"], ["updated_at", "2015-10-28 13:37:39.609902"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:37:39.613956"], ["updated_at", "2015-10-28 13:37:39.613956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.619347"], ["updated_at", "2015-10-28 13:37:39.619347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:37:39.624140"], ["updated_at", "2015-10-28 13:37:39.624140"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 13:37:39.634280"], ["updated_at", "2015-10-28 13:37:39.634280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 13:37:39.640316"], ["updated_at", "2015-10-28 13:37:39.640316"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.642689"], ["updated_at", "2015-10-28 13:37:39.642689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 13:37:39.647777"], ["updated_at", "2015-10-28 13:37:39.647777"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.655086"], ["updated_at", "2015-10-28 13:37:39.655086"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:37:39.659290"], ["updated_at", "2015-10-28 13:37:39.659290"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.662363"], ["updated_at", "2015-10-28 13:37:39.662363"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.664356"], ["updated_at", "2015-10-28 13:37:39.664356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') SQL (0.2ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.9ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.1ms) 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'  (1.0ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (1.0ms) 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)  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 13:38:03.645788"], ["updated_at", "2015-10-28 13:38:03.645788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:03.672616"], ["updated_at", "2015-10-28 13:38:03.672616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) 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.1ms | ActiveRecord: 0.0ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 13:38:03.714879"], ["updated_at", "2015-10-28 13:38:03.714879"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:03.717854"], ["updated_at", "2015-10-28 13:38:03.717854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:38:03.741994"], ["updated_at", "2015-10-28 13:38:03.741994"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.744578"], ["updated_at", "2015-10-28 13:38:03.744578"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.2ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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 (2.8ms) Completed 200 OK in 11ms (Views: 4.4ms | ActiveRecord: 0.3ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 13:38:03.762710"], ["updated_at", "2015-10-28 13:38:03.762710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:03.771590"], ["updated_at", "2015-10-28 13:38:03.771590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.0ms) 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.9ms) Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.2ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 13:38:03.785813"], ["updated_at", "2015-10-28 13:38:03.785813"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:03.789248"], ["updated_at", "2015-10-28 13:38:03.789248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.2ms) 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"]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.2ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:38:03.947653"], ["updated_at", "2015-10-28 13:38:03.947653"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.950312"], ["updated_at", "2015-10-28 13:38:03.950312"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:38:03.956950"], ["updated_at", "2015-10-28 13:38:03.956950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.959883"], ["updated_at", "2015-10-28 13:38:03.959883"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.4ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

 (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 13:38:03.992554"], ["updated_at", "2015-10-28 13:38:03.992554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:03.996922"], ["updated_at", "2015-10-28 13:38:03.996922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.2ms) 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: 7bit

user8

message body

 (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:38:04.014266"], ["updated_at", "2015-10-28 13:38:04.014266"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.016825"], ["updated_at", "2015-10-28 13:38:04.016825"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = '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: 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: 7bit

user9

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 13:38:04.023720"], ["updated_at", "2015-10-28 13:38:04.023720"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:04.027082"], ["updated_at", "2015-10-28 13:38:04.027082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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: 7bit

user10

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 13:38:04.036466"], ["updated_at", "2015-10-28 13:38:04.036466"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:38:04.044436"], ["updated_at", "2015-10-28 13:38:04.044436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:04.048280"], ["updated_at", "2015-10-28 13:38:04.048280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:38:04.053846"], ["updated_at", "2015-10-28 13:38:04.053846"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:04.062994"], ["updated_at", "2015-10-28 13:38:04.062994"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:38:04.067715"], ["updated_at", "2015-10-28 13:38:04.067715"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:04.071094"], ["updated_at", "2015-10-28 13:38:04.071094"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:38:04.076303"], ["updated_at", "2015-10-28 13:38:04.076303"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:04.079384"], ["updated_at", "2015-10-28 13:38:04.079384"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.081598"], ["updated_at", "2015-10-28 13:38:04.081598"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:38:04.084923"], ["updated_at", "2015-10-28 13:38:04.084923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:04.087751"], ["updated_at", "2015-10-28 13:38:04.087751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.091314"], ["updated_at", "2015-10-28 13:38:04.091314"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user16

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:38:04.099625"], ["updated_at", "2015-10-28 13:38:04.099625"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:04.105443"], ["updated_at", "2015-10-28 13:38:04.105443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.110108"], ["updated_at", "2015-10-28 13:38:04.110108"]]  (0.1ms) 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] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [0e0ca058-5e02-441b-ab31-553718d62e6c] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [0e0ca058-5e02-441b-ab31-553718d62e6c] NotifyWith::NotificationType Load (0.0ms) 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] SQL (0.0ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user17

message body

[ActiveJob] [ActionMailer::DeliveryJob] [0e0ca058-5e02-441b-ab31-553718d62e6c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.76ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:38:04.136450"], ["updated_at", "2015-10-28 13:38:04.136450"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:04.140420"], ["updated_at", "2015-10-28 13:38:04.140420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:38:04.144314"], ["updated_at", "2015-10-28 13:38:04.144314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 13:38:04.178004"], ["updated_at", "2015-10-28 13:38:04.178004"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 13:38:04.180580"], ["updated_at", "2015-10-28 13:38:04.180580"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:04.182805"], ["updated_at", "2015-10-28 13:38:04.182805"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:38:04.186415"], ["updated_at", "2015-10-28 13:38:04.186415"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:04.189200"], ["updated_at", "2015-10-28 13:38:04.189200"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:38:04.191522"], ["updated_at", "2015-10-28 13:38:04.191522"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:38:04.195360"], ["updated_at", "2015-10-28 13:38:04.195360"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:04.198587"], ["updated_at", "2015-10-28 13:38:04.198587"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 13:38:04.209206"], ["updated_at", "2015-10-28 13:38:04.209206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (2.4ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.5ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) select sqlite_version(*)  (2.0ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.8ms) CREATE 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)   (0.7ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.1ms)  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'   (0.7ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (2.0ms) 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)   (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (2.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (2.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:53:25.092140"], ["updated_at", "2015-10-28 13:53:25.092140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_1' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_1"], ["created_at", "2015-10-28 13:53:25.108395"], ["updated_at", "2015-10-28 13:53:25.108395"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 13:53:25.151018"], ["updated_at", "2015-10-28 13:53:25.151018"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_2' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.160067"], ["updated_at", "2015-10-28 13:53:25.160067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.2ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/index.json.jbuilder (20.8ms) Completed 500 Internal Server Error in 25ms (ActiveRecord: 0.4ms)  (3.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 13:53:25.199313"], ["updated_at", "2015-10-28 13:53:25.199313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.6ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_3' LIMIT 1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.219034"], ["updated_at", "2015-10-28 13:53:25.219034"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.2ms) 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]] Message Load (0.2ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (7.2ms) Completed 500 Internal Server Error in 19ms (ActiveRecord: 0.4ms)  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 13:53:25.253215"], ["updated_at", "2015-10-28 13:53:25.253215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_4' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.264404"], ["updated_at", "2015-10-28 13:53:25.264404"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.0ms) 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)  (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:53:25.292145"], ["updated_at", "2015-10-28 13:53:25.292145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_5' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_5"], ["created_at", "2015-10-28 13:53:25.297427"], ["updated_at", "2015-10-28 13:53:25.297427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.2ms) 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"]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.2ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:53:25.469419"], ["updated_at", "2015-10-28 13:53:25.469419"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_6' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_6"], ["created_at", "2015-10-28 13:53:25.472151"], ["updated_at", "2015-10-28 13:53:25.472151"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 13:53:25.483898"], ["updated_at", "2015-10-28 13:53:25.483898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_7' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.490419"], ["updated_at", "2015-10-28 13:53:25.490419"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 22.0ms  (2.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:53:25.524674"], ["updated_at", "2015-10-28 13:53:25.524674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_8' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_8"], ["created_at", "2015-10-28 13:53:25.527931"], ["updated_at", "2015-10-28 13:53:25.527931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 15.5ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 13:53:25.551147"], ["updated_at", "2015-10-28 13:53:25.551147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_9' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.558749"], ["updated_at", "2015-10-28 13:53:25.558749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 11.3ms  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:53:25.578846"], ["updated_at", "2015-10-28 13:53:25.578846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_10' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_10"], ["created_at", "2015-10-28 13:53:25.584885"], ["updated_at", "2015-10-28 13:53:25.584885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 13.0ms  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:53:25.605440"], ["updated_at", "2015-10-28 13:53:25.605440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_11' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 13:53:25.618851"], ["updated_at", "2015-10-28 13:53:25.618851"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_12' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_12"], ["created_at", "2015-10-28 13:53:25.622896"], ["updated_at", "2015-10-28 13:53:25.622896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:53:25.628278"], ["updated_at", "2015-10-28 13:53:25.628278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_13' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 13:53:25.648160"], ["updated_at", "2015-10-28 13:53:25.648160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_14' LIMIT 1 SQL (0.4ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_14"], ["created_at", "2015-10-28 13:53:25.654861"], ["updated_at", "2015-10-28 13:53:25.654861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:53:25.659764"], ["updated_at", "2015-10-28 13:53:25.659764"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_15' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 13:53:25.676620"], ["updated_at", "2015-10-28 13:53:25.676620"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_16' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_16"], ["created_at", "2015-10-28 13:53:25.678956"], ["updated_at", "2015-10-28 13:53:25.678956"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:53:25.687505"], ["updated_at", "2015-10-28 13:53:25.687505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_17' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.5ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 13:53:25.709664"], ["updated_at", "2015-10-28 13:53:25.709664"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_18' LIMIT 1 SQL (0.4ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_18"], ["created_at", "2015-10-28 13:53:25.717606"], ["updated_at", "2015-10-28 13:53:25.717606"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:53:25.724055"], ["updated_at", "2015-10-28 13:53:25.724055"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_19' LIMIT 1 SQL (0.4ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_19"], ["created_at", "2015-10-28 13:53:25.729394"], ["updated_at", "2015-10-28 13:53:25.729394"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:53:25.734249"], ["updated_at", "2015-10-28 13:53:25.734249"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_20' LIMIT 1 SQL (0.3ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 13:53:25.746363"], ["updated_at", "2015-10-28 13:53:25.746363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_21' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 13:53:25.757398"], ["updated_at", "2015-10-28 13:53:25.757398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_22' LIMIT 1 SQL (0.5ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_22"], ["created_at", "2015-10-28 13:53:25.763000"], ["updated_at", "2015-10-28 13:53:25.763000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:53:25.772387"], ["updated_at", "2015-10-28 13:53:25.772387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_23' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_23"], ["created_at", "2015-10-28 13:53:25.775165"], ["updated_at", "2015-10-28 13:53:25.775165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 13:53:25.782413"], ["updated_at", "2015-10-28 13:53:25.782413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_24' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_24"], ["created_at", "2015-10-28 13:53:25.787968"], ["updated_at", "2015-10-28 13:53:25.787968"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:53:25.794748"], ["updated_at", "2015-10-28 13:53:25.794748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_25' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) CREATE 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)   (1.1ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.1ms)  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'   (0.8ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (1.0ms) 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)   (1.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 13:55:07.556544"], ["updated_at", "2015-10-28 13:55:07.556544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_1' LIMIT 1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.602526"], ["updated_at", "2015-10-28 13:55:07.602526"]]  (0.0ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:55:07.645930"], ["updated_at", "2015-10-28 13:55:07.645930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_2' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_2"], ["created_at", "2015-10-28 13:55:07.650454"], ["updated_at", "2015-10-28 13:55:07.650454"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.6ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.2ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:55:07.685832"], ["updated_at", "2015-10-28 13:55:07.685832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_3' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_3"], ["created_at", "2015-10-28 13:55:07.691747"], ["updated_at", "2015-10-28 13:55:07.691747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.4ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.0ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:55:07.727613"], ["updated_at", "2015-10-28 13:55:07.727613"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_4' LIMIT 1 SQL (0.3ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_4"], ["created_at", "2015-10-28 13:55:07.730723"], ["updated_at", "2015-10-28 13:55:07.730723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.2ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (3.7ms) Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.3ms)  (1.9ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 13:55:07.756069"], ["updated_at", "2015-10-28 13:55:07.756069"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_5' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.764564"], ["updated_at", "2015-10-28 13:55:07.764564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.2ms) 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"]] SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.2ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 13:55:07.931125"], ["updated_at", "2015-10-28 13:55:07.931125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_6' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.938691"], ["updated_at", "2015-10-28 13:55:07.938691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:55:07.951786"], ["updated_at", "2015-10-28 13:55:07.951786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_7' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_7"], ["created_at", "2015-10-28 13:55:07.957900"], ["updated_at", "2015-10-28 13:55:07.957900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 20.8ms  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 13:55:07.991587"], ["updated_at", "2015-10-28 13:55:07.991587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.7ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_8' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.005780"], ["updated_at", "2015-10-28 13:55:08.005780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 12.3ms  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:55:08.030831"], ["updated_at", "2015-10-28 13:55:08.030831"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_9' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_9"], ["created_at", "2015-10-28 13:55:08.033189"], ["updated_at", "2015-10-28 13:55:08.033189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 9.8ms  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 13:55:08.054167"], ["updated_at", "2015-10-28 13:55:08.054167"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_10' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.067804"], ["updated_at", "2015-10-28 13:55:08.067804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 8.7ms  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 13:55:08.082490"], ["updated_at", "2015-10-28 13:55:08.082490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:55:08.085087"], ["updated_at", "2015-10-28 13:55:08.085087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.087740"], ["updated_at", "2015-10-28 13:55:08.087740"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 13:55:08.093993"], ["updated_at", "2015-10-28 13:55:08.093993"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:55:08.096751"], ["updated_at", "2015-10-28 13:55:08.096751"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:55:08.100914"], ["updated_at", "2015-10-28 13:55:08.100914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 13:55:08.120740"], ["updated_at", "2015-10-28 13:55:08.120740"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:55:08.127056"], ["updated_at", "2015-10-28 13:55:08.127056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:55:08.133294"], ["updated_at", "2015-10-28 13:55:08.133294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (1.6ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 13:55:08.155868"], ["updated_at", "2015-10-28 13:55:08.155868"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:55:08.162765"], ["updated_at", "2015-10-28 13:55:08.162765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.168710"], ["updated_at", "2015-10-28 13:55:08.168710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (4.8ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user16

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:55:08.209400"], ["updated_at", "2015-10-28 13:55:08.209400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.4ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [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] NotifyWith::Notification Load (0.1ms) 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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [243deabe-53af-434c-82ad-6d6a5a442808] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [243deabe-53af-434c-82ad-6d6a5a442808] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["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] SQL (0.0ms) 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: 7bit

user17

message body

[ActiveJob] [ActionMailer::DeliveryJob] [243deabe-53af-434c-82ad-6d6a5a442808] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.08ms  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 13:55:08.270309"], ["updated_at", "2015-10-28 13:55:08.270309"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:55:08.272721"], ["updated_at", "2015-10-28 13:55:08.272721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:55:08.279385"], ["updated_at", "2015-10-28 13:55:08.279385"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_11' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_11"], ["created_at", "2015-10-28 13:55:08.282764"], ["updated_at", "2015-10-28 13:55:08.282764"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:55:08.286336"], ["updated_at", "2015-10-28 13:55:08.286336"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 13:55:08.295744"], ["updated_at", "2015-10-28 13:55:08.295744"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_12' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 13:55:08.310749"], ["updated_at", "2015-10-28 13:55:08.310749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:55:08.313383"], ["updated_at", "2015-10-28 13:55:08.313383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:55:08.324256"], ["updated_at", "2015-10-28 13:55:08.324256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_13' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_13"], ["created_at", "2015-10-28 13:55:08.328703"], ["updated_at", "2015-10-28 13:55:08.328703"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 13:55:08.334475"], ["updated_at", "2015-10-28 13:55:08.334475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:55:08.337171"], ["updated_at", "2015-10-28 13:55:08.337171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 13:55:08.358831"], ["updated_at", "2015-10-28 13:55:08.358831"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:55:08.365480"], ["updated_at", "2015-10-28 13:55:08.365480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.368640"], ["updated_at", "2015-10-28 13:55:08.368640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.0ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) select sqlite_version(*)  (1.0ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (1.0ms) CREATE 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)   (1.3ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.1ms)  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'   (1.0ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (1.0ms) 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)   (1.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 13:56:24.140713"], ["updated_at", "2015-10-28 13:56:24.140713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_1' LIMIT 1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.186635"], ["updated_at", "2015-10-28 13:56:24.186635"]]  (0.0ms) 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)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:24.224655"], ["updated_at", "2015-10-28 13:56:24.224655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_2' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_2"], ["created_at", "2015-10-28 13:56:24.227714"], ["updated_at", "2015-10-28 13:56:24.227714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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)  (1.0ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:24.263809"], ["updated_at", "2015-10-28 13:56:24.263809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_3' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_3"], ["created_at", "2015-10-28 13:56:24.268639"], ["updated_at", "2015-10-28 13:56:24.268639"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.4ms) 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]] Message Load (0.3ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:24.307301"], ["updated_at", "2015-10-28 13:56:24.307301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_4' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_4"], ["created_at", "2015-10-28 13:56:24.311770"], ["updated_at", "2015-10-28 13:56:24.311770"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.3ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (6.0ms) Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.5ms)  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 13:56:24.334187"], ["updated_at", "2015-10-28 13:56:24.334187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_5' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.339959"], ["updated_at", "2015-10-28 13:56:24.339959"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.2ms) 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"]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.3ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 13:56:24.507618"], ["updated_at", "2015-10-28 13:56:24.507618"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_6' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.513794"], ["updated_at", "2015-10-28 13:56:24.513794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:24.525029"], ["updated_at", "2015-10-28 13:56:24.525029"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_7' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_7"], ["created_at", "2015-10-28 13:56:24.527363"], ["updated_at", "2015-10-28 13:56:24.527363"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 14.8ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 13:56:24.551173"], ["updated_at", "2015-10-28 13:56:24.551173"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_8' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.558007"], ["updated_at", "2015-10-28 13:56:24.558007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 10.6ms  (2.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:24.582835"], ["updated_at", "2015-10-28 13:56:24.582835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_9' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_9"], ["created_at", "2015-10-28 13:56:24.586474"], ["updated_at", "2015-10-28 13:56:24.586474"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 12.0ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 13:56:24.608226"], ["updated_at", "2015-10-28 13:56:24.608226"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_10' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.619930"], ["updated_at", "2015-10-28 13:56:24.619930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 10.8ms  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 13:56:24.641040"], ["updated_at", "2015-10-28 13:56:24.641040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:24.644445"], ["updated_at", "2015-10-28 13:56:24.644445"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.647114"], ["updated_at", "2015-10-28 13:56:24.647114"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 13:56:24.652222"], ["updated_at", "2015-10-28 13:56:24.652222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:24.654302"], ["updated_at", "2015-10-28 13:56:24.654302"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:24.657673"], ["updated_at", "2015-10-28 13:56:24.657673"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 13:56:24.668430"], ["updated_at", "2015-10-28 13:56:24.668430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:24.672486"], ["updated_at", "2015-10-28 13:56:24.672486"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:24.677376"], ["updated_at", "2015-10-28 13:56:24.677376"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 13:56:24.702240"], ["updated_at", "2015-10-28 13:56:24.702240"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:24.705225"], ["updated_at", "2015-10-28 13:56:24.705225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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.711263"], ["updated_at", "2015-10-28 13:56:24.711263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.8ms) SQL (0.2ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user16

message body

 (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:24.747371"], ["updated_at", "2015-10-28 13:56:24.747371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [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] NotifyWith::Notification Load (0.1ms) 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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7588ec9c-75ce-458f-8705-9c006b8ae86d] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7588ec9c-75ce-458f-8705-9c006b8ae86d] NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["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] SQL (0.1ms) 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: 7bit

user17

message body

[ActiveJob] [ActionMailer::DeliveryJob] [7588ec9c-75ce-458f-8705-9c006b8ae86d] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.92ms  (1.5ms) rollback transaction  (0.4ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 13:56:24.807631"], ["updated_at", "2015-10-28 13:56:24.807631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:24.810631"], ["updated_at", "2015-10-28 13:56:24.810631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:24.815935"], ["updated_at", "2015-10-28 13:56:24.815935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_11' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_11"], ["created_at", "2015-10-28 13:56:24.821476"], ["updated_at", "2015-10-28 13:56:24.821476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:24.828023"], ["updated_at", "2015-10-28 13:56:24.828023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 13:56:24.839227"], ["updated_at", "2015-10-28 13:56:24.839227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_12' LIMIT 1 SQL (0.6ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 13:56:24.860927"], ["updated_at", "2015-10-28 13:56:24.860927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:24.866343"], ["updated_at", "2015-10-28 13:56:24.866343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:24.873691"], ["updated_at", "2015-10-28 13:56:24.873691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_13' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_13"], ["created_at", "2015-10-28 13:56:24.878639"], ["updated_at", "2015-10-28 13:56:24.878639"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 13:56:24.891248"], ["updated_at", "2015-10-28 13:56:24.891248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:24.895846"], ["updated_at", "2015-10-28 13:56:24.895846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.5ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 13:56:24.926636"], ["updated_at", "2015-10-28 13:56:24.926636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:24.930409"], ["updated_at", "2015-10-28 13:56:24.930409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.933803"], ["updated_at", "2015-10-28 13:56:24.933803"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (8.8ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.2ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) select sqlite_version(*)  (2.1ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (1.5ms) CREATE 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)   (1.0ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.2ms)  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'   (0.9ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (2.6ms) 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)   (1.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 13:56:52.952696"], ["updated_at", "2015-10-28 13:56:52.952696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_1' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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:52.997414"], ["updated_at", "2015-10-28 13:56:52.997414"]]  (0.1ms) 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)  (8.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:53.042812"], ["updated_at", "2015-10-28 13:56:53.042812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_2' LIMIT 1 SQL (0.3ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_2"], ["created_at", "2015-10-28 13:56:53.047392"], ["updated_at", "2015-10-28 13:56:53.047392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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)  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:53.085859"], ["updated_at", "2015-10-28 13:56:53.085859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_3' LIMIT 1 SQL (0.4ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_3"], ["created_at", "2015-10-28 13:56:53.092264"], ["updated_at", "2015-10-28 13:56:53.092264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.0ms) 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)  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:53.127429"], ["updated_at", "2015-10-28 13:56:53.127429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_4' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_4"], ["created_at", "2015-10-28 13:56:53.132759"], ["updated_at", "2015-10-28 13:56:53.132759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.2ms) 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]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (3.9ms) Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.4ms)  (1.5ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 13:56:53.162801"], ["updated_at", "2015-10-28 13:56:53.162801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_5' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.180852"], ["updated_at", "2015-10-28 13:56:53.180852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.2ms) 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"]] SQL (0.3ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 7ms (ActiveRecord: 0.5ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 13:56:53.331628"], ["updated_at", "2015-10-28 13:56:53.331628"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_6' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.337640"], ["updated_at", "2015-10-28 13:56:53.337640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (8.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:53.354727"], ["updated_at", "2015-10-28 13:56:53.354727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_7' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_7"], ["created_at", "2015-10-28 13:56:53.357322"], ["updated_at", "2015-10-28 13:56:53.357322"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 16.4ms  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 13:56:53.382021"], ["updated_at", "2015-10-28 13:56:53.382021"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_8' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.397594"], ["updated_at", "2015-10-28 13:56:53.397594"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 9.8ms  (1.1ms) rollback transaction  (0.3ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:53.418687"], ["updated_at", "2015-10-28 13:56:53.418687"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_9' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_9"], ["created_at", "2015-10-28 13:56:53.420787"], ["updated_at", "2015-10-28 13:56:53.420787"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 9.4ms  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 13:56:53.436649"], ["updated_at", "2015-10-28 13:56:53.436649"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_10' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.443021"], ["updated_at", "2015-10-28 13:56:53.443021"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 9.6ms  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 13:56:53.458510"], ["updated_at", "2015-10-28 13:56:53.458510"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:53.460997"], ["updated_at", "2015-10-28 13:56:53.460997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:53.471504"], ["updated_at", "2015-10-28 13:56:53.471504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_11' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_11"], ["created_at", "2015-10-28 13:56:53.478254"], ["updated_at", "2015-10-28 13:56:53.478254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.4ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.483300"], ["updated_at", "2015-10-28 13:56:53.483300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 13:56:53.492705"], ["updated_at", "2015-10-28 13:56:53.492705"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:53.495014"], ["updated_at", "2015-10-28 13:56:53.495014"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:53.505209"], ["updated_at", "2015-10-28 13:56:53.505209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_12' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_12"], ["created_at", "2015-10-28 13:56:53.509764"], ["updated_at", "2015-10-28 13:56:53.509764"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (2.4ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:53.518817"], ["updated_at", "2015-10-28 13:56:53.518817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 13:56:53.531267"], ["updated_at", "2015-10-28 13:56:53.531267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_13' LIMIT 1 SQL (0.4ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.3ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 13:56:53.565812"], ["updated_at", "2015-10-28 13:56:53.565812"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:53.567866"], ["updated_at", "2015-10-28 13:56:53.567866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:53.570371"], ["updated_at", "2015-10-28 13:56:53.570371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_14' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_14"], ["created_at", "2015-10-28 13:56:53.574576"], ["updated_at", "2015-10-28 13:56:53.574576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:53.609305"], ["updated_at", "2015-10-28 13:56:53.609305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 13:56:53.619730"], ["updated_at", "2015-10-28 13:56:53.619730"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_15' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 13:56:53.635305"], ["updated_at", "2015-10-28 13:56:53.635305"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:53.637393"], ["updated_at", "2015-10-28 13:56:53.637393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:53.644539"], ["updated_at", "2015-10-28 13:56:53.644539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_16' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_16"], ["created_at", "2015-10-28 13:56:53.648156"], ["updated_at", "2015-10-28 13:56:53.648156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.650359"], ["updated_at", "2015-10-28 13:56:53.650359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (2.5ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user21

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:53.676788"], ["updated_at", "2015-10-28 13:56:53.676788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 13:56:53.688095"], ["updated_at", "2015-10-28 13:56:53.688095"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_17' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [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] NotifyWith::Notification Load (0.1ms) 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] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [13898432-ec90-42b1-b571-0f587bf8df48] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [13898432-ec90-42b1-b571-0f587bf8df48] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["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] SQL (0.1ms) 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: 7bit

user23

message body

[ActiveJob] [ActionMailer::DeliveryJob] [13898432-ec90-42b1-b571-0f587bf8df48] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.28ms  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 13:56:53.733245"], ["updated_at", "2015-10-28 13:56:53.733245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:53.742666"], ["updated_at", "2015-10-28 13:56:53.742666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:53.747451"], ["updated_at", "2015-10-28 13:56:53.747451"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_18' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_18"], ["created_at", "2015-10-28 13:56:53.751203"], ["updated_at", "2015-10-28 13:56:53.751203"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:53.754708"], ["updated_at", "2015-10-28 13:56:53.754708"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-28 13:56:53.777681"], ["updated_at", "2015-10-28 13:56:53.777681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_19' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.1ms) rollback transaction  (0.5ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (2.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-28 13:56:53.805841"], ["updated_at", "2015-10-28 13:56:53.805841"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:53.815497"], ["updated_at", "2015-10-28 13:56:53.815497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:53.819203"], ["updated_at", "2015-10-28 13:56:53.819203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_20' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_20"], ["created_at", "2015-10-28 13:56:53.825728"], ["updated_at", "2015-10-28 13:56:53.825728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-28 13:56:53.834864"], ["updated_at", "2015-10-28 13:56:53.834864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.8ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:53.839684"], ["updated_at", "2015-10-28 13:56:53.839684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:53.843672"], ["updated_at", "2015-10-28 13:56:53.843672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_21' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_21"], ["created_at", "2015-10-28 13:56:53.845819"], ["updated_at", "2015-10-28 13:56:53.845819"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-10-28 13:56:53.860514"], ["updated_at", "2015-10-28 13:56:53.860514"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:53.868026"], ["updated_at", "2015-10-28 13:56:53.868026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:53.870736"], ["updated_at", "2015-10-28 13:56:53.870736"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_22' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_22"], ["created_at", "2015-10-28 13:56:53.872408"], ["updated_at", "2015-10-28 13:56:53.872408"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.874639"], ["updated_at", "2015-10-28 13:56:53.874639"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (9.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.6ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) select sqlite_version(*)  (1.0ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (1.0ms) CREATE 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)   (1.0ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.1ms)  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'   (1.1ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (0.9ms) 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)   (1.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 13:57:31.264771"], ["updated_at", "2015-10-28 13:57:31.264771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_1' LIMIT 1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.304355"], ["updated_at", "2015-10-28 13:57:31.304355"]]  (0.0ms) 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)  (8.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:57:31.342365"], ["updated_at", "2015-10-28 13:57:31.342365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_2' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_2"], ["created_at", "2015-10-28 13:57:31.348686"], ["updated_at", "2015-10-28 13:57:31.348686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.3ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.5ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:57:31.386725"], ["updated_at", "2015-10-28 13:57:31.386725"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_3' LIMIT 1 SQL (0.4ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_3"], ["created_at", "2015-10-28 13:57:31.395359"], ["updated_at", "2015-10-28 13:57:31.395359"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.0ms) 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)  (1.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:57:31.430377"], ["updated_at", "2015-10-28 13:57:31.430377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_4' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_4"], ["created_at", "2015-10-28 13:57:31.432928"], ["updated_at", "2015-10-28 13:57:31.432928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.2ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (5.7ms) Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.4ms)  (1.3ms) rollback transaction  (0.3ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 13:57:31.466590"], ["updated_at", "2015-10-28 13:57:31.466590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_5' LIMIT 1 SQL (0.1ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.481672"], ["updated_at", "2015-10-28 13:57:31.481672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.2ms) 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"]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 4ms (ActiveRecord: 0.2ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 13:57:31.630068"], ["updated_at", "2015-10-28 13:57:31.630068"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_6' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.636083"], ["updated_at", "2015-10-28 13:57:31.636083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (8.7ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:57:31.654776"], ["updated_at", "2015-10-28 13:57:31.654776"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_7' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_7"], ["created_at", "2015-10-28 13:57:31.657158"], ["updated_at", "2015-10-28 13:57:31.657158"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 12.3ms  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 13:57:31.676341"], ["updated_at", "2015-10-28 13:57:31.676341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_8' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.681968"], ["updated_at", "2015-10-28 13:57:31.681968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 21.3ms  (1.1ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:57:31.718972"], ["updated_at", "2015-10-28 13:57:31.718972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_9' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_9"], ["created_at", "2015-10-28 13:57:31.723939"], ["updated_at", "2015-10-28 13:57:31.723939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 15.0ms  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 13:57:31.750149"], ["updated_at", "2015-10-28 13:57:31.750149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_10' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.763076"], ["updated_at", "2015-10-28 13:57:31.763076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 9.9ms  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 13:57:31.779584"], ["updated_at", "2015-10-28 13:57:31.779584"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:57:31.782152"], ["updated_at", "2015-10-28 13:57:31.782152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.784982"], ["updated_at", "2015-10-28 13:57:31.784982"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 13:57:31.794117"], ["updated_at", "2015-10-28 13:57:31.794117"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:57:31.800551"], ["updated_at", "2015-10-28 13:57:31.800551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:57:31.804902"], ["updated_at", "2015-10-28 13:57:31.804902"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 13:57:31.816486"], ["updated_at", "2015-10-28 13:57:31.816486"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:57:31.818885"], ["updated_at", "2015-10-28 13:57:31.818885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:57:31.823325"], ["updated_at", "2015-10-28 13:57:31.823325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 13:57:31.844944"], ["updated_at", "2015-10-28 13:57:31.844944"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:57:31.851175"], ["updated_at", "2015-10-28 13:57:31.851175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.853897"], ["updated_at", "2015-10-28 13:57:31.853897"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.2ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user16

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:57:31.875490"], ["updated_at", "2015-10-28 13:57:31.875490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [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] NotifyWith::Notification Load (0.1ms) 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] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7c0a7e83-ffed-4aad-b469-cedbe48ea18e] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7c0a7e83-ffed-4aad-b469-cedbe48ea18e] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["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] SQL (0.1ms) 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: 7bit

user17

message body

[ActiveJob] [ActionMailer::DeliveryJob] [7c0a7e83-ffed-4aad-b469-cedbe48ea18e] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.61ms  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 13:57:31.914946"], ["updated_at", "2015-10-28 13:57:31.914946"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:57:31.917365"], ["updated_at", "2015-10-28 13:57:31.917365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:57:31.925513"], ["updated_at", "2015-10-28 13:57:31.925513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_11' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_11"], ["created_at", "2015-10-28 13:57:31.929187"], ["updated_at", "2015-10-28 13:57:31.929187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:57:31.936804"], ["updated_at", "2015-10-28 13:57:31.936804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 13:57:31.946140"], ["updated_at", "2015-10-28 13:57:31.946140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_12' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 13:57:31.961451"], ["updated_at", "2015-10-28 13:57:31.961451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:57:31.964179"], ["updated_at", "2015-10-28 13:57:31.964179"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:57:31.971568"], ["updated_at", "2015-10-28 13:57:31.971568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_13' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_13"], ["created_at", "2015-10-28 13:57:31.974915"], ["updated_at", "2015-10-28 13:57:31.974915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 13:57:31.982402"], ["updated_at", "2015-10-28 13:57:31.982402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:57:31.984821"], ["updated_at", "2015-10-28 13:57:31.984821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 13:57:31.996295"], ["updated_at", "2015-10-28 13:57:31.996295"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:57:31.998527"], ["updated_at", "2015-10-28 13:57:31.998527"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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:32.000670"], ["updated_at", "2015-10-28 13:57:32.000670"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') SQL (0.3ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (10.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.2ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) select sqlite_version(*)  (1.0ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) CREATE 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)   (1.0ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.1ms)  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'   (0.9ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (2.3ms) 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)   (1.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 13:58:14.016857"], ["updated_at", "2015-10-28 13:58:14.016857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_1' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.053907"], ["updated_at", "2015-10-28 13:58:14.053907"]]  (0.1ms) 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)  (8.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:58:14.098080"], ["updated_at", "2015-10-28 13:58:14.098080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_2' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_2"], ["created_at", "2015-10-28 13:58:14.104618"], ["updated_at", "2015-10-28 13:58:14.104618"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:58:14.137325"], ["updated_at", "2015-10-28 13:58:14.137325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_3' LIMIT 1 SQL (0.3ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_3"], ["created_at", "2015-10-28 13:58:14.142513"], ["updated_at", "2015-10-28 13:58:14.142513"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.2ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:58:14.180979"], ["updated_at", "2015-10-28 13:58:14.180979"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_4' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_4"], ["created_at", "2015-10-28 13:58:14.186569"], ["updated_at", "2015-10-28 13:58:14.186569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (2.7ms) Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.2ms)  (1.0ms) rollback transaction  (0.4ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 13:58:14.209110"], ["updated_at", "2015-10-28 13:58:14.209110"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_5' LIMIT 1 SQL (0.5ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.229779"], ["updated_at", "2015-10-28 13:58:14.229779"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.1ms) 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"]] SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 13:58:14.360801"], ["updated_at", "2015-10-28 13:58:14.360801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_6' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.366815"], ["updated_at", "2015-10-28 13:58:14.366815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (8.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:58:14.385234"], ["updated_at", "2015-10-28 13:58:14.385234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_7' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_7"], ["created_at", "2015-10-28 13:58:14.387593"], ["updated_at", "2015-10-28 13:58:14.387593"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 13.0ms  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 13:58:14.407324"], ["updated_at", "2015-10-28 13:58:14.407324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_8' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.412661"], ["updated_at", "2015-10-28 13:58:14.412661"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 10.2ms  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:58:14.428654"], ["updated_at", "2015-10-28 13:58:14.428654"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_9' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_9"], ["created_at", "2015-10-28 13:58:14.430717"], ["updated_at", "2015-10-28 13:58:14.430717"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 11.9ms  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 13:58:14.450062"], ["updated_at", "2015-10-28 13:58:14.450062"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_10' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.455958"], ["updated_at", "2015-10-28 13:58:14.455958"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 8.3ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 13:58:14.469593"], ["updated_at", "2015-10-28 13:58:14.469593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:58:14.471951"], ["updated_at", "2015-10-28 13:58:14.471951"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.4ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:58:14.482668"], ["updated_at", "2015-10-28 13:58:14.482668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:58:14.496757"], ["updated_at", "2015-10-28 13:58:14.496757"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.4ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:58:14.509337"], ["updated_at", "2015-10-28 13:58:14.509337"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.3ms) SELECT "notification_types".* FROM "notification_types" NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:58:14.527879"], ["updated_at", "2015-10-28 13:58:14.527879"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.535659"], ["updated_at", "2015-10-28 13:58:14.535659"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (1.7ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:58:14.544826"], ["updated_at", "2015-10-28 13:58:14.544826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.553368"], ["updated_at", "2015-10-28 13:58:14.553368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.2ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user16

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:58:14.578428"], ["updated_at", "2015-10-28 13:58:14.578428"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.584971"], ["updated_at", "2015-10-28 13:58:14.584971"]]  (0.0ms) 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] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["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] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [943c9667-1156-4971-8ac6-954a19cb47c3] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [943c9667-1156-4971-8ac6-954a19cb47c3] NotifyWith::NotificationType Load (0.0ms) 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] SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user17

message body

[ActiveJob] [ActionMailer::DeliveryJob] [943c9667-1156-4971-8ac6-954a19cb47c3] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.56ms  (1.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:58:14.616109"], ["updated_at", "2015-10-28 13:58:14.616109"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 13:58:14.624477"], ["updated_at", "2015-10-28 13:58:14.624477"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_11' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:58:14.631948"], ["updated_at", "2015-10-28 13:58:14.631948"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 13:58:14.637392"], ["updated_at", "2015-10-28 13:58:14.637392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_12' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.3ms) SELECT "notification_types".* FROM "notification_types" NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:58:14.650153"], ["updated_at", "2015-10-28 13:58:14.650153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 13:58:14.659617"], ["updated_at", "2015-10-28 13:58:14.659617"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_13' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:58:14.665933"], ["updated_at", "2015-10-28 13:58:14.665933"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.3ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 13:58:14.688591"], ["updated_at", "2015-10-28 13:58:14.688591"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:58:14.690987"], ["updated_at", "2015-10-28 13:58:14.690987"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (9.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.4ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) select sqlite_version(*)  (1.0ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) CREATE 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)   (0.9ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.2ms)  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'   (0.9ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (1.3ms) 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)   (1.6ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 14:00:00.368788"], ["updated_at", "2015-10-28 14:00:00.368788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_1' LIMIT 1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.410116"], ["updated_at", "2015-10-28 14:00:00.410116"]]  (0.0ms) 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)  (8.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:00.449761"], ["updated_at", "2015-10-28 14:00:00.449761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_2' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_2"], ["created_at", "2015-10-28 14:00:00.453702"], ["updated_at", "2015-10-28 14:00:00.453702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:00.490734"], ["updated_at", "2015-10-28 14:00:00.490734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_3' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_3"], ["created_at", "2015-10-28 14:00:00.496963"], ["updated_at", "2015-10-28 14:00:00.496963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.6ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:00.544174"], ["updated_at", "2015-10-28 14:00:00.544174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_4' LIMIT 1 SQL (0.5ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_4"], ["created_at", "2015-10-28 14:00:00.553206"], ["updated_at", "2015-10-28 14:00:00.553206"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.2ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (6.2ms) Completed 500 Internal Server Error in 15ms (ActiveRecord: 0.4ms)  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 14:00:00.594914"], ["updated_at", "2015-10-28 14:00:00.594914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_5' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.613719"], ["updated_at", "2015-10-28 14:00:00.613719"]]  (0.6ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.2ms) 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"]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 7ms (ActiveRecord: 0.2ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 14:00:00.788683"], ["updated_at", "2015-10-28 14:00:00.788683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_6' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.796496"], ["updated_at", "2015-10-28 14:00:00.796496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (10.6ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:00.819977"], ["updated_at", "2015-10-28 14:00:00.819977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_7' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_7"], ["created_at", "2015-10-28 14:00:00.831366"], ["updated_at", "2015-10-28 14:00:00.831366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 20.9ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 14:00:00.867673"], ["updated_at", "2015-10-28 14:00:00.867673"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_8' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.894040"], ["updated_at", "2015-10-28 14:00:00.894040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 12.9ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:00.921810"], ["updated_at", "2015-10-28 14:00:00.921810"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_9' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_9"], ["created_at", "2015-10-28 14:00:00.930638"], ["updated_at", "2015-10-28 14:00:00.930638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 14.4ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 14:00:00.967657"], ["updated_at", "2015-10-28 14:00:00.967657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_10' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.984730"], ["updated_at", "2015-10-28 14:00:00.984730"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 16.3ms  (1.5ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 14:00:01.013091"], ["updated_at", "2015-10-28 14:00:01.013091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:00:01.022158"], ["updated_at", "2015-10-28 14:00:01.022158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:01.036296"], ["updated_at", "2015-10-28 14:00:01.036296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:01.061811"], ["updated_at", "2015-10-28 14:00:01.061811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.0ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.3ms) SELECT "notification_types".* FROM "notification_types" NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:01.087806"], ["updated_at", "2015-10-28 14:00:01.087806"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:01.105520"], ["updated_at", "2015-10-28 14:00:01.105520"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.6ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.127753"], ["updated_at", "2015-10-28 14:00:01.127753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:01.134101"], ["updated_at", "2015-10-28 14:00:01.134101"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.156773"], ["updated_at", "2015-10-28 14:00:01.156773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.2ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user16

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:01.183475"], ["updated_at", "2015-10-28 14:00:01.183475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.198817"], ["updated_at", "2015-10-28 14:00:01.198817"]]  (0.1ms) 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] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7ed6cdaf-a9b4-47e8-8d37-7c91b08e42dd] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7ed6cdaf-a9b4-47e8-8d37-7c91b08e42dd] NotifyWith::NotificationType Load (0.0ms) 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] SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user17

message body

[ActiveJob] [ActionMailer::DeliveryJob] [7ed6cdaf-a9b4-47e8-8d37-7c91b08e42dd] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.0ms  (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:01.235123"], ["updated_at", "2015-10-28 14:00:01.235123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 14:00:01.247409"], ["updated_at", "2015-10-28 14:00:01.247409"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_11' LIMIT 1 SQL (0.1ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" NotifyWith::NotificationType Load (0.3ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:01.273270"], ["updated_at", "2015-10-28 14:00:01.273270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 14:00:01.280178"], ["updated_at", "2015-10-28 14:00:01.280178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_12' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (1.0ms) SELECT "notification_types".* FROM "notification_types" NotifyWith::NotificationType Load (0.4ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:01.297542"], ["updated_at", "2015-10-28 14:00:01.297542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 14:00:01.308204"], ["updated_at", "2015-10-28 14:00:01.308204"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_13' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:01.313918"], ["updated_at", "2015-10-28 14:00:01.313918"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (2.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 14:00:01.344237"], ["updated_at", "2015-10-28 14:00:01.344237"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:00:01.350060"], ["updated_at", "2015-10-28 14:00:01.350060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (9.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.7ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) select sqlite_version(*)  (1.2ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (1.0ms) CREATE 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)   (1.0ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.2ms)  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'   (0.8ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (1.3ms) 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)   (1.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 14:00:26.991839"], ["updated_at", "2015-10-28 14:00:26.991839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_1' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.032092"], ["updated_at", "2015-10-28 14:00:27.032092"]]  (0.0ms) 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)  (8.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:27.073219"], ["updated_at", "2015-10-28 14:00:27.073219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_2' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_2"], ["created_at", "2015-10-28 14:00:27.077869"], ["updated_at", "2015-10-28 14:00:27.077869"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.8ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.2ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.3ms) 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)  (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:27.111493"], ["updated_at", "2015-10-28 14:00:27.111493"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_3' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_3"], ["created_at", "2015-10-28 14:00:27.114409"], ["updated_at", "2015-10-28 14:00:27.114409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.6ms) 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]] Message Load (0.2ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.2ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:27.161388"], ["updated_at", "2015-10-28 14:00:27.161388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_4' LIMIT 1 SQL (0.3ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_4"], ["created_at", "2015-10-28 14:00:27.165587"], ["updated_at", "2015-10-28 14:00:27.165587"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.2ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (3.6ms) Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.4ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 14:00:27.206841"], ["updated_at", "2015-10-28 14:00:27.206841"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.7ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_5' LIMIT 1 SQL (0.2ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.229778"], ["updated_at", "2015-10-28 14:00:27.229778"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.1ms) 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"]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 14:00:27.395235"], ["updated_at", "2015-10-28 14:00:27.395235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_6' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.400687"], ["updated_at", "2015-10-28 14:00:27.400687"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (8.1ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:27.417408"], ["updated_at", "2015-10-28 14:00:27.417408"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_7' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_7"], ["created_at", "2015-10-28 14:00:27.419477"], ["updated_at", "2015-10-28 14:00:27.419477"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 17.6ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 14:00:27.444911"], ["updated_at", "2015-10-28 14:00:27.444911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_8' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.452600"], ["updated_at", "2015-10-28 14:00:27.452600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 14.3ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:27.478487"], ["updated_at", "2015-10-28 14:00:27.478487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.5ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_9' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_9"], ["created_at", "2015-10-28 14:00:27.488215"], ["updated_at", "2015-10-28 14:00:27.488215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 11.0ms  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 14:00:27.511504"], ["updated_at", "2015-10-28 14:00:27.511504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_10' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.521257"], ["updated_at", "2015-10-28 14:00:27.521257"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 15.3ms  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 14:00:27.547671"], ["updated_at", "2015-10-28 14:00:27.547671"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:00:27.549856"], ["updated_at", "2015-10-28 14:00:27.549856"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.552177"], ["updated_at", "2015-10-28 14:00:27.552177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 14:00:27.560860"], ["updated_at", "2015-10-28 14:00:27.560860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:00:27.567140"], ["updated_at", "2015-10-28 14:00:27.567140"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (3.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 14:00:27.584401"], ["updated_at", "2015-10-28 14:00:27.584401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:00:27.591593"], ["updated_at", "2015-10-28 14:00:27.591593"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:27.596533"], ["updated_at", "2015-10-28 14:00:27.596533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 14:00:27.608430"], ["updated_at", "2015-10-28 14:00:27.608430"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:00:27.616806"], ["updated_at", "2015-10-28 14:00:27.616806"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (1.6ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.627752"], ["updated_at", "2015-10-28 14:00:27.627752"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:27.631826"], ["updated_at", "2015-10-28 14:00:27.631826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.3ms) SQL (0.2ms) 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: 7bit

user16

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 14:00:27.681528"], ["updated_at", "2015-10-28 14:00:27.681528"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:00:27.691674"], ["updated_at", "2015-10-28 14:00:27.691674"]]  (1.4ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.697624"], ["updated_at", "2015-10-28 14:00:27.697624"]]  (0.1ms) 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] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["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] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [6de9942c-48a6-4dce-86c3-e94fc260069b] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [6de9942c-48a6-4dce-86c3-e94fc260069b] NotifyWith::NotificationType Load (0.0ms) 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] SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user17

message body

[ActiveJob] [ActionMailer::DeliveryJob] [6de9942c-48a6-4dce-86c3-e94fc260069b] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.91ms  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:27.729044"], ["updated_at", "2015-10-28 14:00:27.729044"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 14:00:27.747282"], ["updated_at", "2015-10-28 14:00:27.747282"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_11' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 14:00:27.755042"], ["updated_at", "2015-10-28 14:00:27.755042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:00:27.757610"], ["updated_at", "2015-10-28 14:00:27.757610"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:27.761483"], ["updated_at", "2015-10-28 14:00:27.761483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.7ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_12' LIMIT 1 SQL (0.3ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_12"], ["created_at", "2015-10-28 14:00:27.768904"], ["updated_at", "2015-10-28 14:00:27.768904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:27.778242"], ["updated_at", "2015-10-28 14:00:27.778242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 14:00:27.784949"], ["updated_at", "2015-10-28 14:00:27.784949"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_13' LIMIT 1 SQL (0.2ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:27.796514"], ["updated_at", "2015-10-28 14:00:27.796514"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.816075"], ["updated_at", "2015-10-28 14:00:27.816075"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:27.820091"], ["updated_at", "2015-10-28 14:00:27.820091"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') SQL (0.2ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (2.5ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.2ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.6ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) select sqlite_version(*)  (1.0ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (1.0ms) CREATE 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)   (0.8ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.1ms)  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'   (0.9ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (1.2ms) 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)   (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 14:11:31.256186"], ["updated_at", "2015-10-28 14:11:31.256186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_1' LIMIT 1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.304481"], ["updated_at", "2015-10-28 14:11:31.304481"]]  (0.0ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:11:31.344831"], ["updated_at", "2015-10-28 14:11:31.344831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_2' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_2"], ["created_at", "2015-10-28 14:11:31.349051"], ["updated_at", "2015-10-28 14:11:31.349051"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.3ms) 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)  (2.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:11:31.389303"], ["updated_at", "2015-10-28 14:11:31.389303"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_3' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_3"], ["created_at", "2015-10-28 14:11:31.391841"], ["updated_at", "2015-10-28 14:11:31.391841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.4ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.0ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:11:31.433573"], ["updated_at", "2015-10-28 14:11:31.433573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_4' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_4"], ["created_at", "2015-10-28 14:11:31.437905"], ["updated_at", "2015-10-28 14:11:31.437905"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (5.3ms) Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.4ms)  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 14:11:31.468599"], ["updated_at", "2015-10-28 14:11:31.468599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_5' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.482609"], ["updated_at", "2015-10-28 14:11:31.482609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.4ms) 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"]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 4ms (ActiveRecord: 0.5ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 14:11:31.653244"], ["updated_at", "2015-10-28 14:11:31.653244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_6' LIMIT 1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.660074"], ["updated_at", "2015-10-28 14:11:31.660074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:11:31.672431"], ["updated_at", "2015-10-28 14:11:31.672431"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_7' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_7"], ["created_at", "2015-10-28 14:11:31.674465"], ["updated_at", "2015-10-28 14:11:31.674465"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 18.7ms  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 14:11:31.704640"], ["updated_at", "2015-10-28 14:11:31.704640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_8' LIMIT 1 SQL (0.1ms) 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"]]  (3.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.717613"], ["updated_at", "2015-10-28 14:11:31.717613"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 14.9ms  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:11:31.744799"], ["updated_at", "2015-10-28 14:11:31.744799"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_9' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_9"], ["created_at", "2015-10-28 14:11:31.747245"], ["updated_at", "2015-10-28 14:11:31.747245"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 9.9ms  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 14:11:31.766807"], ["updated_at", "2015-10-28 14:11:31.766807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_10' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.773569"], ["updated_at", "2015-10-28 14:11:31.773569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 17.4ms  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 14:11:31.800443"], ["updated_at", "2015-10-28 14:11:31.800443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:11:31.806753"], ["updated_at", "2015-10-28 14:11:31.806753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.811834"], ["updated_at", "2015-10-28 14:11:31.811834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 14:11:31.822847"], ["updated_at", "2015-10-28 14:11:31.822847"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:11:31.824950"], ["updated_at", "2015-10-28 14:11:31.824950"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.9ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 14:11:31.839386"], ["updated_at", "2015-10-28 14:11:31.839386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:11:31.847370"], ["updated_at", "2015-10-28 14:11:31.847370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (2.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:11:31.856915"], ["updated_at", "2015-10-28 14:11:31.856915"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.3ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 14:11:31.882893"], ["updated_at", "2015-10-28 14:11:31.882893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:11:31.886297"], ["updated_at", "2015-10-28 14:11:31.886297"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.893560"], ["updated_at", "2015-10-28 14:11:31.893560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.7ms) rollback transaction  (0.8ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:11:31.901827"], ["updated_at", "2015-10-28 14:11:31.901827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.4ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (2.2ms) SQL (0.3ms) 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: 7bit

user16

message body

 (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 14:11:31.949379"], ["updated_at", "2015-10-28 14:11:31.949379"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:11:31.954488"], ["updated_at", "2015-10-28 14:11:31.954488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.957978"], ["updated_at", "2015-10-28 14:11:31.957978"]]  (0.0ms) 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] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [3092acc5-e1e0-491d-ab8d-f972f73bac5d] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [3092acc5-e1e0-491d-ab8d-f972f73bac5d] NotifyWith::NotificationType Load (0.1ms) 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] SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user17

message body

[ActiveJob] [ActionMailer::DeliveryJob] [3092acc5-e1e0-491d-ab8d-f972f73bac5d] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.31ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:11:31.996143"], ["updated_at", "2015-10-28 14:11:31.996143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 14:11:32.016129"], ["updated_at", "2015-10-28 14:11:32.016129"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_11' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 14:11:32.032192"], ["updated_at", "2015-10-28 14:11:32.032192"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:11:32.039568"], ["updated_at", "2015-10-28 14:11:32.039568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:11:32.046776"], ["updated_at", "2015-10-28 14:11:32.046776"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_12' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_12"], ["created_at", "2015-10-28 14:11:32.049152"], ["updated_at", "2015-10-28 14:11:32.049152"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.9ms) rollback transaction  (0.9ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:11:32.062685"], ["updated_at", "2015-10-28 14:11:32.062685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 14:11:32.078587"], ["updated_at", "2015-10-28 14:11:32.078587"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_13' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:11:32.093515"], ["updated_at", "2015-10-28 14:11:32.093515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.115044"], ["updated_at", "2015-10-28 14:11:32.115044"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (1.5ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:11:32.126302"], ["updated_at", "2015-10-28 14:11:32.126302"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.4ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') SQL (0.2ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.2ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) select sqlite_version(*)  (1.0ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (1.8ms) CREATE 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)   (0.9ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.1ms)  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'   (0.9ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (1.0ms) 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)   (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (2.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 14:12:36.849634"], ["updated_at", "2015-10-28 14:12:36.849634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:12:36.901535"], ["updated_at", "2015-10-28 14:12:36.901535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 14:12:36.912144"], ["updated_at", "2015-10-28 14:12:36.912144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:12:36.926991"], ["updated_at", "2015-10-28 14:12:36.926991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 14:12:36.935524"], ["updated_at", "2015-10-28 14:12:36.935524"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:12:37.114289"], ["updated_at", "2015-10-28 14:12:37.114289"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 14:12:37.121255"], ["updated_at", "2015-10-28 14:12:37.121255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:12:37.139206"], ["updated_at", "2015-10-28 14:12:37.139206"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 14:12:37.146256"], ["updated_at", "2015-10-28 14:12:37.146256"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:12:37.161920"], ["updated_at", "2015-10-28 14:12:37.161920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:12:37.169193"], ["updated_at", "2015-10-28 14:12:37.169193"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:12:37.207291"], ["updated_at", "2015-10-28 14:12:37.207291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:12:37.232621"], ["updated_at", "2015-10-28 14:12:37.232621"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.0ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 14:12:37.256409"], ["updated_at", "2015-10-28 14:12:37.256409"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:12:37.262852"], ["updated_at", "2015-10-28 14:12:37.262852"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:12:37.267858"], ["updated_at", "2015-10-28 14:12:37.267858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 14:12:37.283074"], ["updated_at", "2015-10-28 14:12:37.283074"]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.5ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:12:37.293450"], ["updated_at", "2015-10-28 14:12:37.293450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.300300"], ["updated_at", "2015-10-28 14:12:37.300300"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (2.8ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user16

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:12:37.334155"], ["updated_at", "2015-10-28 14:12:37.334155"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [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] NotifyWith::Notification Load (0.1ms) 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] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [2d8e294f-6f45-4086-a85a-80d3c9fcc60c] Message Load (0.2ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [2d8e294f-6f45-4086-a85a-80d3c9fcc60c] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["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] SQL (0.1ms) 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: 7bit

user17

message body

[ActiveJob] [ActionMailer::DeliveryJob] [2d8e294f-6f45-4086-a85a-80d3c9fcc60c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.33ms  (0.7ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 14:12:37.380371"], ["updated_at", "2015-10-28 14:12:37.380371"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:12:37.383187"], ["updated_at", "2015-10-28 14:12:37.383187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:12:37.391742"], ["updated_at", "2015-10-28 14:12:37.391742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:12:37.401363"], ["updated_at", "2015-10-28 14:12:37.401363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 14:12:37.412067"], ["updated_at", "2015-10-28 14:12:37.412067"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 14:12:37.419820"], ["updated_at", "2015-10-28 14:12:37.419820"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:12:37.422090"], ["updated_at", "2015-10-28 14:12:37.422090"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:12:37.424647"], ["updated_at", "2015-10-28 14:12:37.424647"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 14:12:37.433564"], ["updated_at", "2015-10-28 14:12:37.433564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:12:37.436687"], ["updated_at", "2015-10-28 14:12:37.436687"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 14:12:37.463950"], ["updated_at", "2015-10-28 14:12:37.463950"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:12:37.467003"], ["updated_at", "2015-10-28 14:12:37.467003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.471271"], ["updated_at", "2015-10-28 14:12:37.471271"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (8.9ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) select sqlite_version(*)  (1.1ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (1.0ms) CREATE 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)   (0.9ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.1ms)  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'   (0.8ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (1.0ms) 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)   (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 14:13:49.280884"], ["updated_at", "2015-10-28 14:13:49.280884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:13:49.314059"], ["updated_at", "2015-10-28 14:13:49.314059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 14:13:49.363837"], ["updated_at", "2015-10-28 14:13:49.363837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.3ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:13:49.372321"], ["updated_at", "2015-10-28 14:13:49.372321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:13:49.408173"], ["updated_at", "2015-10-28 14:13:49.408173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.412381"], ["updated_at", "2015-10-28 14:13:49.412381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.3ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.2ms) 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 (5.6ms) Completed 200 OK in 14ms (Views: 8.8ms | ActiveRecord: 0.6ms)  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 14:13:49.436698"], ["updated_at", "2015-10-28 14:13:49.436698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:13:49.443271"], ["updated_at", "2015-10-28 14:13:49.443271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.2ms) 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]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.2ms) 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 (3.7ms) Completed 200 OK in 11ms (Views: 4.0ms | ActiveRecord: 0.6ms)  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 14:13:49.471956"], ["updated_at", "2015-10-28 14:13:49.471956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:13:49.476700"], ["updated_at", "2015-10-28 14:13:49.476700"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.1ms) 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"]] SQL (0.4ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 5ms (ActiveRecord: 0.6ms) NotifyWith::Notification Load (0.3ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (1.3ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:13:49.621197"], ["updated_at", "2015-10-28 14:13:49.621197"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.625460"], ["updated_at", "2015-10-28 14:13:49.625460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (9.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:13:49.643186"], ["updated_at", "2015-10-28 14:13:49.643186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.647366"], ["updated_at", "2015-10-28 14:13:49.647366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 14:13:49.675933"], ["updated_at", "2015-10-28 14:13:49.675933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:13:49.681671"], ["updated_at", "2015-10-28 14:13:49.681671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user8

message body

 (1.8ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:13:49.702860"], ["updated_at", "2015-10-28 14:13:49.702860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.709511"], ["updated_at", "2015-10-28 14:13:49.709511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user9

message body

 (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 14:13:49.720157"], ["updated_at", "2015-10-28 14:13:49.720157"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:13:49.726463"], ["updated_at", "2015-10-28 14:13:49.726463"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user10

message body

 (2.2ms) rollback transaction  (0.1ms) begin transaction  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 14:13:49.750471"], ["updated_at", "2015-10-28 14:13:49.750471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:13:49.756232"], ["updated_at", "2015-10-28 14:13:49.756232"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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.761025"], ["updated_at", "2015-10-28 14:13:49.761025"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 14:13:49.770824"], ["updated_at", "2015-10-28 14:13:49.770824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:13:49.777741"], ["updated_at", "2015-10-28 14:13:49.777741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 14:13:49.796610"], ["updated_at", "2015-10-28 14:13:49.796610"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:13:49.799011"], ["updated_at", "2015-10-28 14:13:49.799011"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:13:49.806036"], ["updated_at", "2015-10-28 14:13:49.806036"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.3ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 14:13:49.825348"], ["updated_at", "2015-10-28 14:13:49.825348"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:13:49.827662"], ["updated_at", "2015-10-28 14:13:49.827662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.830088"], ["updated_at", "2015-10-28 14:13:49.830088"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:13:49.833566"], ["updated_at", "2015-10-28 14:13:49.833566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.2ms) 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: 7bit

user16

message body

 (0.7ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 14:13:49.866276"], ["updated_at", "2015-10-28 14:13:49.866276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:13:49.870236"], ["updated_at", "2015-10-28 14:13:49.870236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.874554"], ["updated_at", "2015-10-28 14:13:49.874554"]]  (0.1ms) 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] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["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] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c697bc4d-14e8-40be-b024-8dae7cd9a78f] Message Load (0.2ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c697bc4d-14e8-40be-b024-8dae7cd9a78f] NotifyWith::NotificationType Load (0.0ms) 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] SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user17

message body

[ActiveJob] [ActionMailer::DeliveryJob] [c697bc4d-14e8-40be-b024-8dae7cd9a78f] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.77ms  (0.7ms) rollback transaction  (0.3ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:13:49.904710"], ["updated_at", "2015-10-28 14:13:49.904710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.0ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 14:13:49.920296"], ["updated_at", "2015-10-28 14:13:49.920296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:13:49.933066"], ["updated_at", "2015-10-28 14:13:49.933066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) 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"]]  (1.7ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 14:13:49.950011"], ["updated_at", "2015-10-28 14:13:49.950011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:13:49.967226"], ["updated_at", "2015-10-28 14:13:49.967226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 14:13:49.976604"], ["updated_at", "2015-10-28 14:13:49.976604"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (1.2ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 14:13:49.988073"], ["updated_at", "2015-10-28 14:13:49.988073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:13:49.990699"], ["updated_at", "2015-10-28 14:13:49.990699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (2.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 14:13:50.019638"], ["updated_at", "2015-10-28 14:13:50.019638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:13:50.025761"], ["updated_at", "2015-10-28 14:13:50.025761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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:50.029095"], ["updated_at", "2015-10-28 14:13:50.029095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') SQL (0.5ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (9.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.5ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) select sqlite_version(*)  (3.0ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (1.7ms) CREATE 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)   (1.0ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.2ms)  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'   (0.9ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (1.1ms) 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)   (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 14:16:05.079844"], ["updated_at", "2015-10-28 14:16:05.079844"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:16:05.122012"], ["updated_at", "2015-10-28 14:16:05.122012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) 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)  (8.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 14:16:05.162880"], ["updated_at", "2015-10-28 14:16:05.162880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:16:05.168193"], ["updated_at", "2015-10-28 14:16:05.168193"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:16:05.193736"], ["updated_at", "2015-10-28 14:16:05.193736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.202293"], ["updated_at", "2015-10-28 14:16:05.202293"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] Message Load (0.2ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.2ms) 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/show.json.jbuilder (8.4ms) Completed 200 OK in 13ms (Views: 10.3ms | ActiveRecord: 0.5ms)  (1.6ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 14:16:05.227760"], ["updated_at", "2015-10-28 14:16:05.227760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:16:05.234802"], ["updated_at", "2015-10-28 14:16:05.234802"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.2ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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 (3.7ms) Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 0.4ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 14:16:05.251340"], ["updated_at", "2015-10-28 14:16:05.251340"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:16:05.257379"], ["updated_at", "2015-10-28 14:16:05.257379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.2ms) 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"]] SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 4ms (ActiveRecord: 0.2ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:16:05.417206"], ["updated_at", "2015-10-28 14:16:05.417206"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.421526"], ["updated_at", "2015-10-28 14:16:05.421526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (8.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:16:05.438567"], ["updated_at", "2015-10-28 14:16:05.438567"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.442911"], ["updated_at", "2015-10-28 14:16:05.442911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.2ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

 (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 14:16:05.476003"], ["updated_at", "2015-10-28 14:16:05.476003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.3ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.6ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:16:05.485920"], ["updated_at", "2015-10-28 14:16:05.485920"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.2ms) 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: 7bit

user8

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:16:05.512426"], ["updated_at", "2015-10-28 14:16:05.512426"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.520343"], ["updated_at", "2015-10-28 14:16:05.520343"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user9

message body

 (3.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 14:16:05.538311"], ["updated_at", "2015-10-28 14:16:05.538311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.3ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:16:05.548915"], ["updated_at", "2015-10-28 14:16:05.548915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) SQL (0.1ms) 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: 7bit

user10

message body

 (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 14:16:05.576470"], ["updated_at", "2015-10-28 14:16:05.576470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:16:05.583657"], ["updated_at", "2015-10-28 14:16:05.583657"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.586534"], ["updated_at", "2015-10-28 14:16:05.586534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 14:16:05.593147"], ["updated_at", "2015-10-28 14:16:05.593147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.7ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:16:05.599150"], ["updated_at", "2015-10-28 14:16:05.599150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 14:16:05.611849"], ["updated_at", "2015-10-28 14:16:05.611849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:16:05.619461"], ["updated_at", "2015-10-28 14:16:05.619461"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.3ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.9ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:16:05.629698"], ["updated_at", "2015-10-28 14:16:05.629698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 14:16:05.646021"], ["updated_at", "2015-10-28 14:16:05.646021"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:16:05.653283"], ["updated_at", "2015-10-28 14:16:05.653283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.657337"], ["updated_at", "2015-10-28 14:16:05.657337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:16:05.662327"], ["updated_at", "2015-10-28 14:16:05.662327"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.6ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.3ms) 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: 7bit

user16

message body

 (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 14:16:05.695048"], ["updated_at", "2015-10-28 14:16:05.695048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:16:05.698578"], ["updated_at", "2015-10-28 14:16:05.698578"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.702307"], ["updated_at", "2015-10-28 14:16:05.702307"]]  (0.0ms) 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] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [44ee2261-7cde-4d8c-90ec-ed8df27af9f5] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [44ee2261-7cde-4d8c-90ec-ed8df27af9f5] NotifyWith::NotificationType Load (0.1ms) 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] SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user17

message body

[ActiveJob] [ActionMailer::DeliveryJob] [44ee2261-7cde-4d8c-90ec-ed8df27af9f5] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.35ms  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:16:05.731606"], ["updated_at", "2015-10-28 14:16:05.731606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 14:16:05.748642"], ["updated_at", "2015-10-28 14:16:05.748642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:16:05.758030"], ["updated_at", "2015-10-28 14:16:05.758030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 14:16:05.767288"], ["updated_at", "2015-10-28 14:16:05.767288"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:16:05.774038"], ["updated_at", "2015-10-28 14:16:05.774038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 14:16:05.786926"], ["updated_at", "2015-10-28 14:16:05.786926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 14:16:05.797442"], ["updated_at", "2015-10-28 14:16:05.797442"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:16:05.799461"], ["updated_at", "2015-10-28 14:16:05.799461"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.5ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 14:16:05.824234"], ["updated_at", "2015-10-28 14:16:05.824234"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:16:05.828779"], ["updated_at", "2015-10-28 14:16:05.828779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.834594"], ["updated_at", "2015-10-28 14:16:05.834594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.9ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') SQL (0.3ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (2.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.0ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.3ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.8ms) CREATE 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)   (0.7ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.1ms)  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'   (0.7ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (1.2ms) 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)   (1.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 14:32:17.432562"], ["updated_at", "2015-10-28 14:32:17.432562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:17.480610"], ["updated_at", "2015-10-28 14:32:17.480610"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 14:32:17.526896"], ["updated_at", "2015-10-28 14:32:17.526896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:17.534215"], ["updated_at", "2015-10-28 14:32:17.534215"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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)  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:17.570603"], ["updated_at", "2015-10-28 14:32:17.570603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.577094"], ["updated_at", "2015-10-28 14:32:17.577094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.2ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (3.3ms) Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.3ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 14:32:17.599009"], ["updated_at", "2015-10-28 14:32:17.599009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:17.603834"], ["updated_at", "2015-10-28 14:32:17.603834"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (2.5ms) Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.3ms)  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 14:32:17.620504"], ["updated_at", "2015-10-28 14:32:17.620504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:17.627116"], ["updated_at", "2015-10-28 14:32:17.627116"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.1ms) 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"]] SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:17.801263"], ["updated_at", "2015-10-28 14:32:17.801263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.809146"], ["updated_at", "2015-10-28 14:32:17.809146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:17.819704"], ["updated_at", "2015-10-28 14:32:17.819704"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.824802"], ["updated_at", "2015-10-28 14:32:17.824802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (2.0ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

 (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 14:32:17.861091"], ["updated_at", "2015-10-28 14:32:17.861091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.8ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:17.867922"], ["updated_at", "2015-10-28 14:32:17.867922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) SQL (0.2ms) 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: 7bit

user8

message body

 (1.2ms) rollback transaction  (0.4ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:17.898060"], ["updated_at", "2015-10-28 14:32:17.898060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.905705"], ["updated_at", "2015-10-28 14:32:17.905705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user9

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 14:32:17.921351"], ["updated_at", "2015-10-28 14:32:17.921351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:17.928256"], ["updated_at", "2015-10-28 14:32:17.928256"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.5ms) SQL (0.3ms) 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: 7bit

user10

message body

 (1.3ms) rollback transaction  (0.3ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 14:32:17.954644"], ["updated_at", "2015-10-28 14:32:17.954644"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:17.962739"], ["updated_at", "2015-10-28 14:32:17.962739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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:17.965950"], ["updated_at", "2015-10-28 14:32:17.965950"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 14:32:17.971148"], ["updated_at", "2015-10-28 14:32:17.971148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:17.973854"], ["updated_at", "2015-10-28 14:32:17.973854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 14:32:17.986096"], ["updated_at", "2015-10-28 14:32:17.986096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:17.990158"], ["updated_at", "2015-10-28 14:32:17.990158"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:17.995665"], ["updated_at", "2015-10-28 14:32:17.995665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 14:32:18.006240"], ["updated_at", "2015-10-28 14:32:18.006240"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:18.013505"], ["updated_at", "2015-10-28 14:32:18.013505"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.018885"], ["updated_at", "2015-10-28 14:32:18.018885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:18.022937"], ["updated_at", "2015-10-28 14:32:18.022937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.4ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user16

message body

 (1.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 14:32:18.052841"], ["updated_at", "2015-10-28 14:32:18.052841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:18.058095"], ["updated_at", "2015-10-28 14:32:18.058095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.061764"], ["updated_at", "2015-10-28 14:32:18.061764"]]  (0.0ms) 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] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [a95feb7b-7701-4985-95e6-cc16760e3bbb] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [a95feb7b-7701-4985-95e6-cc16760e3bbb] NotifyWith::NotificationType Load (0.1ms) 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] SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user17

message body

[ActiveJob] [ActionMailer::DeliveryJob] [a95feb7b-7701-4985-95e6-cc16760e3bbb] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.56ms  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:18.096776"], ["updated_at", "2015-10-28 14:32:18.096776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 14:32:18.108689"], ["updated_at", "2015-10-28 14:32:18.108689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:18.119216"], ["updated_at", "2015-10-28 14:32:18.119216"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 14:32:18.129483"], ["updated_at", "2015-10-28 14:32:18.129483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.3ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:18.144251"], ["updated_at", "2015-10-28 14:32:18.144251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 14:32:18.154782"], ["updated_at", "2015-10-28 14:32:18.154782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 14:32:18.168873"], ["updated_at", "2015-10-28 14:32:18.168873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.6ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:18.171804"], ["updated_at", "2015-10-28 14:32:18.171804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.3ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 14:32:18.190097"], ["updated_at", "2015-10-28 14:32:18.190097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:18.194115"], ["updated_at", "2015-10-28 14:32:18.194115"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.201088"], ["updated_at", "2015-10-28 14:32:18.201088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.2ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.5ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) select sqlite_version(*)  (1.1ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (1.1ms) CREATE 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)   (0.9ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.1ms)  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'   (1.5ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (1.1ms) 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)   (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 14:32:56.940653"], ["updated_at", "2015-10-28 14:32:56.940653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.8ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:56.990604"], ["updated_at", "2015-10-28 14:32:56.990604"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) 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: 8.8ms | ActiveRecord: 0.0ms)  (2.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 14:32:57.032969"], ["updated_at", "2015-10-28 14:32:57.032969"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:57.040197"], ["updated_at", "2015-10-28 14:32:57.040197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.4ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.2ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:57.112699"], ["updated_at", "2015-10-28 14:32:57.112699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.121336"], ["updated_at", "2015-10-28 14:32:57.121336"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.2ms) 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]] Message Load (0.2ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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 (5.1ms) Completed 200 OK in 13ms (Views: 8.5ms | ActiveRecord: 0.5ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 14:32:57.147155"], ["updated_at", "2015-10-28 14:32:57.147155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.7ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:57.156882"], ["updated_at", "2015-10-28 14:32:57.156882"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.0ms) 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 (2.2ms) Completed 200 OK in 7ms (Views: 2.5ms | ActiveRecord: 0.3ms)  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 14:32:57.191140"], ["updated_at", "2015-10-28 14:32:57.191140"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:57.205246"], ["updated_at", "2015-10-28 14:32:57.205246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.5ms) 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"]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 6ms (ActiveRecord: 0.6ms) NotifyWith::Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (1.9ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:57.397917"], ["updated_at", "2015-10-28 14:32:57.397917"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.403192"], ["updated_at", "2015-10-28 14:32:57.403192"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:57.417058"], ["updated_at", "2015-10-28 14:32:57.417058"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.429129"], ["updated_at", "2015-10-28 14:32:57.429129"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 10.1ms  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (2.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:57.451065"], ["updated_at", "2015-10-28 14:32:57.451065"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.468734"], ["updated_at", "2015-10-28 14:32:57.468734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 3.0ms  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:57.486789"], ["updated_at", "2015-10-28 14:32:57.486789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.500206"], ["updated_at", "2015-10-28 14:32:57.500206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 6.1ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:57.515139"], ["updated_at", "2015-10-28 14:32:57.515139"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.537569"], ["updated_at", "2015-10-28 14:32:57.537569"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 3.2ms  (1.1ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 14:32:57.556477"], ["updated_at", "2015-10-28 14:32:57.556477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:57.563651"], ["updated_at", "2015-10-28 14:32:57.563651"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.5ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.567912"], ["updated_at", "2015-10-28 14:32:57.567912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.2ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 14:32:57.579126"], ["updated_at", "2015-10-28 14:32:57.579126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:57.582043"], ["updated_at", "2015-10-28 14:32:57.582043"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 14:32:57.597418"], ["updated_at", "2015-10-28 14:32:57.597418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:57.600030"], ["updated_at", "2015-10-28 14:32:57.600030"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:57.607161"], ["updated_at", "2015-10-28 14:32:57.607161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 14:32:57.628572"], ["updated_at", "2015-10-28 14:32:57.628572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:57.631380"], ["updated_at", "2015-10-28 14:32:57.631380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.633637"], ["updated_at", "2015-10-28 14:32:57.633637"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:57.637473"], ["updated_at", "2015-10-28 14:32:57.637473"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 3.5ms  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:57.652312"], ["updated_at", "2015-10-28 14:32:57.652312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [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] NotifyWith::Notification Load (0.1ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 14:32:57.696018"], ["updated_at", "2015-10-28 14:32:57.696018"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:57.700783"], ["updated_at", "2015-10-28 14:32:57.700783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:57.705100"], ["updated_at", "2015-10-28 14:32:57.705100"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 14:32:57.716863"], ["updated_at", "2015-10-28 14:32:57.716863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:57.722328"], ["updated_at", "2015-10-28 14:32:57.722328"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:57.725231"], ["updated_at", "2015-10-28 14:32:57.725231"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 14:32:57.732661"], ["updated_at", "2015-10-28 14:32:57.732661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:57.735737"], ["updated_at", "2015-10-28 14:32:57.735737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:57.747805"], ["updated_at", "2015-10-28 14:32:57.747805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (1.7ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:57.766744"], ["updated_at", "2015-10-28 14:32:57.766744"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.5ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (2.3ms) 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.789913"], ["updated_at", "2015-10-28 14:32:57.789913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:57.801690"], ["updated_at", "2015-10-28 14:32:57.801690"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.7ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (1.7ms) CREATE 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)   (0.7ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.1ms)  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'   (0.8ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (1.0ms) 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)   (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 14:36:19.427233"], ["updated_at", "2015-10-28 14:36:19.427233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.5ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:36:19.474156"], ["updated_at", "2015-10-28 14:36:19.474156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 14:36:19.514786"], ["updated_at", "2015-10-28 14:36:19.514786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:36:19.521474"], ["updated_at", "2015-10-28 14:36:19.521474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:36:19.586680"], ["updated_at", "2015-10-28 14:36:19.586680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.596750"], ["updated_at", "2015-10-28 14:36:19.596750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.2ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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 (5.3ms) Completed 200 OK in 13ms (Views: 8.9ms | ActiveRecord: 0.4ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 14:36:19.622842"], ["updated_at", "2015-10-28 14:36:19.622842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (2.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.3ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:36:19.636684"], ["updated_at", "2015-10-28 14:36:19.636684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.0ms) 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 (2.2ms) Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.3ms)  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (7.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 14:36:19.668523"], ["updated_at", "2015-10-28 14:36:19.668523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:36:19.689419"], ["updated_at", "2015-10-28 14:36:19.689419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.2ms) 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"]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 5ms (ActiveRecord: 0.2ms) NotifyWith::Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:36:19.890035"], ["updated_at", "2015-10-28 14:36:19.890035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.7ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.906074"], ["updated_at", "2015-10-28 14:36:19.906074"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:36:19.917351"], ["updated_at", "2015-10-28 14:36:19.917351"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.4ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.934739"], ["updated_at", "2015-10-28 14:36:19.934739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.8ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 14:36:19.983627"], ["updated_at", "2015-10-28 14:36:19.983627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:36:20.002173"], ["updated_at", "2015-10-28 14:36:20.002173"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) SQL (0.1ms) 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: 7bit

user8

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) 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"]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:36:20.057907"], ["updated_at", "2015-10-28 14:36:20.057907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.070828"], ["updated_at", "2015-10-28 14:36:20.070828"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user9

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (2.9ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 14:36:20.080237"], ["updated_at", "2015-10-28 14:36:20.080237"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:36:20.099513"], ["updated_at", "2015-10-28 14:36:20.099513"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user10

message body

 (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 14:36:20.111736"], ["updated_at", "2015-10-28 14:36:20.111736"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:36:20.114708"], ["updated_at", "2015-10-28 14:36:20.114708"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.116800"], ["updated_at", "2015-10-28 14:36:20.116800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 14:36:20.125937"], ["updated_at", "2015-10-28 14:36:20.125937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:36:20.131092"], ["updated_at", "2015-10-28 14:36:20.131092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 14:36:20.142649"], ["updated_at", "2015-10-28 14:36:20.142649"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:36:20.145189"], ["updated_at", "2015-10-28 14:36:20.145189"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.6ms) rollback transaction  (0.3ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:36:20.157952"], ["updated_at", "2015-10-28 14:36:20.157952"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 14:36:20.180396"], ["updated_at", "2015-10-28 14:36:20.180396"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:36:20.183955"], ["updated_at", "2015-10-28 14:36:20.183955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.186886"], ["updated_at", "2015-10-28 14:36:20.186886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.9ms) rollback transaction  (0.2ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:36:20.194065"], ["updated_at", "2015-10-28 14:36:20.194065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user16

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 14:36:20.225484"], ["updated_at", "2015-10-28 14:36:20.225484"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:36:20.232809"], ["updated_at", "2015-10-28 14:36:20.232809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.235529"], ["updated_at", "2015-10-28 14:36:20.235529"]]  (0.1ms) 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] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e24ff2cb-70a5-45cb-ac39-c909e3166c05] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e24ff2cb-70a5-45cb-ac39-c909e3166c05] NotifyWith::NotificationType Load (0.1ms) 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] SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user17

message body

[ActiveJob] [ActionMailer::DeliveryJob] [e24ff2cb-70a5-45cb-ac39-c909e3166c05] Performed ActionMailer::DeliveryJob from Inline(mailers) in 9.03ms  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:36:20.272240"], ["updated_at", "2015-10-28 14:36:20.272240"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 14:36:20.299719"], ["updated_at", "2015-10-28 14:36:20.299719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:36:20.308538"], ["updated_at", "2015-10-28 14:36:20.308538"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.6ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 14:36:20.320488"], ["updated_at", "2015-10-28 14:36:20.320488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.4ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:36:20.348498"], ["updated_at", "2015-10-28 14:36:20.348498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.7ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 14:36:20.364918"], ["updated_at", "2015-10-28 14:36:20.364918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 14:36:20.379654"], ["updated_at", "2015-10-28 14:36:20.379654"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:36:20.384871"], ["updated_at", "2015-10-28 14:36:20.384871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 14:36:20.401437"], ["updated_at", "2015-10-28 14:36:20.401437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:36:20.409202"], ["updated_at", "2015-10-28 14:36:20.409202"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.415948"], ["updated_at", "2015-10-28 14:36:20.415948"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.2ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.5ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) select sqlite_version(*)  (1.0ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (1.1ms) CREATE 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)   (1.3ms) CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")  (0.2ms)  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'   (0.9ms) CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")  (1.0ms) 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)   (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 14:37:55.899221"], ["updated_at", "2015-10-28 14:37:55.899221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:37:55.950223"], ["updated_at", "2015-10-28 14:37:55.950223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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)  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 14:37:55.995897"], ["updated_at", "2015-10-28 14:37:55.995897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:37:56.002920"], ["updated_at", "2015-10-28 14:37:56.002920"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.3ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.4ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:37:56.040261"], ["updated_at", "2015-10-28 14:37:56.040261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.5ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.055664"], ["updated_at", "2015-10-28 14:37:56.055664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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 (5.1ms) Completed 200 OK in 12ms (Views: 9.4ms | ActiveRecord: 0.3ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 14:37:56.079520"], ["updated_at", "2015-10-28 14:37:56.079520"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:37:56.088737"], ["updated_at", "2015-10-28 14:37:56.088737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.3ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.2ms) 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/show.json.jbuilder (8.8ms) Completed 200 OK in 18ms (Views: 9.7ms | ActiveRecord: 0.8ms)  (1.6ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 14:37:56.125957"], ["updated_at", "2015-10-28 14:37:56.125957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:37:56.134468"], ["updated_at", "2015-10-28 14:37:56.134468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.2ms) 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"]] SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:37:56.312209"], ["updated_at", "2015-10-28 14:37:56.312209"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.317207"], ["updated_at", "2015-10-28 14:37:56.317207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:37:56.328559"], ["updated_at", "2015-10-28 14:37:56.328559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.334154"], ["updated_at", "2015-10-28 14:37:56.334154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (2.2ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

 (2.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 14:37:56.377768"], ["updated_at", "2015-10-28 14:37:56.377768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:37:56.387394"], ["updated_at", "2015-10-28 14:37:56.387394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user8

message body

 (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:37:56.403052"], ["updated_at", "2015-10-28 14:37:56.403052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.3ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.420106"], ["updated_at", "2015-10-28 14:37:56.420106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user9

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 14:37:56.432598"], ["updated_at", "2015-10-28 14:37:56.432598"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:37:56.445873"], ["updated_at", "2015-10-28 14:37:56.445873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user10

message body

 (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 14:37:56.469160"], ["updated_at", "2015-10-28 14:37:56.469160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:37:56.476276"], ["updated_at", "2015-10-28 14:37:56.476276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.481630"], ["updated_at", "2015-10-28 14:37:56.481630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 14:37:56.494574"], ["updated_at", "2015-10-28 14:37:56.494574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:37:56.503362"], ["updated_at", "2015-10-28 14:37:56.503362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.7ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 14:37:56.519927"], ["updated_at", "2015-10-28 14:37:56.519927"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:37:56.533218"], ["updated_at", "2015-10-28 14:37:56.533218"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:37:56.546746"], ["updated_at", "2015-10-28 14:37:56.546746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.5ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.7ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 14:37:56.574667"], ["updated_at", "2015-10-28 14:37:56.574667"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:37:56.581076"], ["updated_at", "2015-10-28 14:37:56.581076"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.583428"], ["updated_at", "2015-10-28 14:37:56.583428"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:37:56.597400"], ["updated_at", "2015-10-28 14:37:56.597400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user16

message body

 (1.4ms) rollback transaction  (0.2ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 14:37:56.639953"], ["updated_at", "2015-10-28 14:37:56.639953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:37:56.648078"], ["updated_at", "2015-10-28 14:37:56.648078"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.655846"], ["updated_at", "2015-10-28 14:37:56.655846"]]  (0.1ms) 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] NotifyWith::Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["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] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [4a6b7400-fc89-4f45-9589-c3d5bab21a7a] Message Load (0.2ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [4a6b7400-fc89-4f45-9589-c3d5bab21a7a] NotifyWith::NotificationType Load (0.1ms) 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] SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user17

message body

[ActiveJob] [ActionMailer::DeliveryJob] [4a6b7400-fc89-4f45-9589-c3d5bab21a7a] Performed ActionMailer::DeliveryJob from Inline(mailers) in 13.18ms  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:37:56.704459"], ["updated_at", "2015-10-28 14:37:56.704459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 14:37:56.716598"], ["updated_at", "2015-10-28 14:37:56.716598"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:37:56.727806"], ["updated_at", "2015-10-28 14:37:56.727806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 14:37:56.734838"], ["updated_at", "2015-10-28 14:37:56.734838"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:37:56.748734"], ["updated_at", "2015-10-28 14:37:56.748734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (7.7ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 14:37:56.772396"], ["updated_at", "2015-10-28 14:37:56.772396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 14:37:56.785482"], ["updated_at", "2015-10-28 14:37:56.785482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:37:56.795712"], ["updated_at", "2015-10-28 14:37:56.795712"]]  (0.6ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.3ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (1.3ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (5.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 14:37:56.825637"], ["updated_at", "2015-10-28 14:37:56.825637"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:37:56.841595"], ["updated_at", "2015-10-28 14:37:56.841595"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.845711"], ["updated_at", "2015-10-28 14:37:56.845711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.3ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') SQL (0.3ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (1.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.1ms) 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)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.9ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.9ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (2.7ms) 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)   (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:18:53.454830"], ["updated_at", "2015-10-28 16:18:53.454830"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_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.462143"], ["updated_at", "2015-10-28 16:18:53.462143"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) 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.4ms | ActiveRecord: 0.0ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 16:18:53.502556"], ["updated_at", "2015-10-28 16:18:53.502556"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:18:53.504601"], ["updated_at", "2015-10-28 16:18:53.504601"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.509446"], ["updated_at", "2015-10-28 16:18:53.509446"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 16:18:53.531349"], ["updated_at", "2015-10-28 16:18:53.531349"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:18:53.533338"], ["updated_at", "2015-10-28 16:18:53.533338"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.540844"], ["updated_at", "2015-10-28 16:18:53.540844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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 (3.3ms) Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.3ms)  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 16:18:53.560773"], ["updated_at", "2015-10-28 16:18:53.560773"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:18:53.564483"], ["updated_at", "2015-10-28 16:18:53.564483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.570598"], ["updated_at", "2015-10-28 16:18:53.570598"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.0ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:18:53.587003"], ["updated_at", "2015-10-28 16:18:53.587003"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.588252"], ["updated_at", "2015-10-28 16:18:53.588252"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.2ms) 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"]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.2ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:18:53.763844"], ["updated_at", "2015-10-28 16:18:53.763844"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.765032"], ["updated_at", "2015-10-28 16:18:53.765032"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 16:18:53.772647"], ["updated_at", "2015-10-28 16:18:53.772647"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:18:53.774656"], ["updated_at", "2015-10-28 16:18:53.774656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.779320"], ["updated_at", "2015-10-28 16:18:53.779320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (2.0ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 16:18:53.812683"], ["updated_at", "2015-10-28 16:18:53.812683"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:18:53.814992"], ["updated_at", "2015-10-28 16:18:53.814992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" SQL (0.4ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.825048"], ["updated_at", "2015-10-28 16:18:53.825048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user8

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 16:18:53.834064"], ["updated_at", "2015-10-28 16:18:53.834064"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:18:53.835953"], ["updated_at", "2015-10-28 16:18:53.835953"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.840381"], ["updated_at", "2015-10-28 16:18:53.840381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.0ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user9

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 16:18:53.846935"], ["updated_at", "2015-10-28 16:18:53.846935"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:18:53.848740"], ["updated_at", "2015-10-28 16:18:53.848740"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.853165"], ["updated_at", "2015-10-28 16:18:53.853165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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 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: 7bit

user10

message body

 (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:18:53.860645"], ["updated_at", "2015-10-28 16:18:53.860645"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:18:53.865883"], ["updated_at", "2015-10-28 16:18:53.865883"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.3ms) INSERT INTO "notification_type_configurations" ("notification_type_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.867319"], ["updated_at", "2015-10-28 16:18:53.867319"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:53.874900"], ["updated_at", "2015-10-28 16:18:53.874900"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 16:18:53.881656"], ["updated_at", "2015-10-28 16:18:53.881656"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:18:53.890068"], ["updated_at", "2015-10-28 16:18:53.890068"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:18:53.893600"], ["updated_at", "2015-10-28 16:18:53.893600"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.894714"], ["updated_at", "2015-10-28 16:18:53.894714"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:18:53.898760"], ["updated_at", "2015-10-28 16:18:53.898760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:18:53.902928"], ["updated_at", "2015-10-28 16:18:53.902928"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.904108"], ["updated_at", "2015-10-28 16:18:53.904108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:18:53.909883"], ["updated_at", "2015-10-28 16:18:53.909883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:18:53.914654"], ["updated_at", "2015-10-28 16:18:53.914654"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.915850"], ["updated_at", "2015-10-28 16:18:53.915850"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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:53.917559"], ["updated_at", "2015-10-28 16:18:53.917559"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (1.2ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:18:53.925448"], ["updated_at", "2015-10-28 16:18:53.925448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:18:53.932301"], ["updated_at", "2015-10-28 16:18:53.932301"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.933556"], ["updated_at", "2015-10-28 16:18:53.933556"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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:53.935514"], ["updated_at", "2015-10-28 16:18:53.935514"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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.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: 7bit

user16

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:18:53.942625"], ["updated_at", "2015-10-28 16:18:53.942625"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:18:53.946269"], ["updated_at", "2015-10-28 16:18:53.946269"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.947401"], ["updated_at", "2015-10-28 16:18:53.947401"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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:53.949122"], ["updated_at", "2015-10-28 16:18:53.949122"]]  (0.0ms) 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] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["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] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [1da14049-eb15-4b24-bb95-1b4dd04a16ee] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [1da14049-eb15-4b24-bb95-1b4dd04a16ee] NotifyWith::NotificationType Load (0.0ms) 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] SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user17

message body

[ActiveJob] [ActionMailer::DeliveryJob] [1da14049-eb15-4b24-bb95-1b4dd04a16ee] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.54ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:18:53.984176"], ["updated_at", "2015-10-28 16:18:53.984176"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:18:53.987731"], ["updated_at", "2015-10-28 16:18:53.987731"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.988855"], ["updated_at", "2015-10-28 16:18:53.988855"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:18:53.992746"], ["updated_at", "2015-10-28 16:18:53.992746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 16:18:53.998104"], ["updated_at", "2015-10-28 16:18:53.998104"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 16:18:54.002837"], ["updated_at", "2015-10-28 16:18:54.002837"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.003946"], ["updated_at", "2015-10-28 16:18:54.003946"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:18:54.009138"], ["updated_at", "2015-10-28 16:18:54.009138"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:18:54.012848"], ["updated_at", "2015-10-28 16:18:54.012848"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.014023"], ["updated_at", "2015-10-28 16:18:54.014023"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:18:54.018947"], ["updated_at", "2015-10-28 16:18:54.018947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:18:54.024422"], ["updated_at", "2015-10-28 16:18:54.024422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:18:54.028694"], ["updated_at", "2015-10-28 16:18:54.028694"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.029883"], ["updated_at", "2015-10-28 16:18:54.029883"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.5ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 16:18:54.047707"], ["updated_at", "2015-10-28 16:18:54.047707"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.9ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) 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)  (0.1ms) select sqlite_version(*)  (1.0ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.9ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) 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)   (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:26:55.754147"], ["updated_at", "2015-10-28 16:26:55.754147"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:26:55.788739"], ["updated_at", "2015-10-28 16:26:55.788739"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_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.806879"], ["updated_at", "2015-10-28 16:26:55.806879"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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:26:55.820987"], ["updated_at", "2015-10-28 16:26:55.820987"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 16:26:55.826837"], ["updated_at", "2015-10-28 16:26:55.826837"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:26:55.841817"], ["updated_at", "2015-10-28 16:26:55.841817"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:26:55.845954"], ["updated_at", "2015-10-28 16:26:55.845954"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.847203"], ["updated_at", "2015-10-28 16:26:55.847203"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:26:55.851195"], ["updated_at", "2015-10-28 16:26:55.851195"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:26:55.855355"], ["updated_at", "2015-10-28 16:26:55.855355"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.856667"], ["updated_at", "2015-10-28 16:26:55.856667"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.0ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:26:55.862520"], ["updated_at", "2015-10-28 16:26:55.862520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:26:55.869063"], ["updated_at", "2015-10-28 16:26:55.869063"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.3ms) INSERT INTO "notification_type_configurations" ("notification_type_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.871096"], ["updated_at", "2015-10-28 16:26:55.871096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:26:55.877116"], ["updated_at", "2015-10-28 16:26:55.877116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:26:55.884303"], ["updated_at", "2015-10-28 16:26:55.884303"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:26:55.888783"], ["updated_at", "2015-10-28 16:26:55.888783"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.890099"], ["updated_at", "2015-10-28 16:26:55.890099"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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:26:55.892038"], ["updated_at", "2015-10-28 16:26:55.892038"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.9ms) SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user6

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:26:56.075718"], ["updated_at", "2015-10-28 16:26:56.075718"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:26:56.080138"], ["updated_at", "2015-10-28 16:26:56.080138"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.081475"], ["updated_at", "2015-10-28 16:26:56.081475"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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:26:56.083451"], ["updated_at", "2015-10-28 16:26:56.083451"]]  (0.0ms) 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] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [063fdb2e-2c37-4a3c-988c-11e039efde00] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [063fdb2e-2c37-4a3c-988c-11e039efde00] NotifyWith::NotificationType Load (0.1ms) 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] SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

[ActiveJob] [ActionMailer::DeliveryJob] [063fdb2e-2c37-4a3c-988c-11e039efde00] Performed ActionMailer::DeliveryJob from Inline(mailers) in 10.56ms  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:26:56.118321"], ["updated_at", "2015-10-28 16:26:56.118321"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) 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"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:26:56.127012"], ["updated_at", "2015-10-28 16:26:56.127012"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.131217"], ["updated_at", "2015-10-28 16:26:56.131217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 16:26:56.139813"], ["updated_at", "2015-10-28 16:26:56.139813"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 16:26:56.144964"], ["updated_at", "2015-10-28 16:26:56.144964"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.146140"], ["updated_at", "2015-10-28 16:26:56.146140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:26:56.151456"], ["updated_at", "2015-10-28 16:26:56.151456"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:26:56.155370"], ["updated_at", "2015-10-28 16:26:56.155370"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.156601"], ["updated_at", "2015-10-28 16:26:56.156601"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:26:56.162687"], ["updated_at", "2015-10-28 16:26:56.162687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 16:26:56.170107"], ["updated_at", "2015-10-28 16:26:56.170107"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 16:26:56.184201"], ["updated_at", "2015-10-28 16:26:56.184201"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.185606"], ["updated_at", "2015-10-28 16:26:56.185606"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 16:26:56.192092"], ["updated_at", "2015-10-28 16:26:56.192092"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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:26:56.208187"], ["updated_at", "2015-10-28 16:26:56.208187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:26:56.214224"], ["updated_at", "2015-10-28 16:26:56.214224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:26:56.220045"], ["updated_at", "2015-10-28 16:26:56.220045"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_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.224397"], ["updated_at", "2015-10-28 16:26:56.224397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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:26:56.229831"], ["updated_at", "2015-10-28 16:26:56.229831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.0ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) 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)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.8ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) 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)   (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:28:02.489503"], ["updated_at", "2015-10-28 16:28:02.489503"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:28:02.531123"], ["updated_at", "2015-10-28 16:28:02.531123"]]  (0.2ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_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.552324"], ["updated_at", "2015-10-28 16:28:02.552324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.565497"], ["updated_at", "2015-10-28 16:28:02.565497"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 16:28:02.571332"], ["updated_at", "2015-10-28 16:28:02.571332"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 16:28:02.581592"], ["updated_at", "2015-10-28 16:28:02.581592"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.5ms) SQL (0.1ms) 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: 7bit

user3

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 16:28:02.767370"], ["updated_at", "2015-10-28 16:28:02.767370"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [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] NotifyWith::Notification Load (0.1ms) 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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [67393dc3-1e59-4bbb-95e2-7cad0af03ba2] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [67393dc3-1e59-4bbb-95e2-7cad0af03ba2] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["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] SQL (0.1ms) 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: 7bit

user4

message body

[ActiveJob] [ActionMailer::DeliveryJob] [67393dc3-1e59-4bbb-95e2-7cad0af03ba2] Performed ActionMailer::DeliveryJob from Inline(mailers) in 9.26ms  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 16:28:02.808071"], ["updated_at", "2015-10-28 16:28:02.808071"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:28:02.823859"], ["updated_at", "2015-10-28 16:28:02.823859"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:28:02.827840"], ["updated_at", "2015-10-28 16:28:02.827840"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.828990"], ["updated_at", "2015-10-28 16:28:02.828990"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 16:28:02.834886"], ["updated_at", "2015-10-28 16:28:02.834886"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 16:28:02.839646"], ["updated_at", "2015-10-28 16:28:02.839646"]]  (0.0ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.840800"], ["updated_at", "2015-10-28 16:28:02.840800"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:28:02.845916"], ["updated_at", "2015-10-28 16:28:02.845916"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:28:02.849284"], ["updated_at", "2015-10-28 16:28:02.849284"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.850379"], ["updated_at", "2015-10-28 16:28:02.850379"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:28:02.856656"], ["updated_at", "2015-10-28 16:28:02.856656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 16:28:02.862527"], ["updated_at", "2015-10-28 16:28:02.862527"]]  (0.3ms) SELECT "notification_types"."id" FROM "notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" SQL (0.3ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 16:28:02.875866"], ["updated_at", "2015-10-28 16:28:02.875866"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.877198"], ["updated_at", "2015-10-28 16:28:02.877198"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 16:28:02.883591"], ["updated_at", "2015-10-28 16:28:02.883591"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.899721"], ["updated_at", "2015-10-28 16:28:02.899721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:28:02.906855"], ["updated_at", "2015-10-28 16:28:02.906855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:28:02.912484"], ["updated_at", "2015-10-28 16:28:02.912484"]]  (0.4ms) SELECT "users"."id" FROM "users" SQL (0.3ms) INSERT INTO "notification_type_configurations" ("notification_type_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.917885"], ["updated_at", "2015-10-28 16:28:02.917885"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.924378"], ["updated_at", "2015-10-28 16:28:02.924378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.3ms) 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)  (0.1ms) select sqlite_version(*)  (0.8ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (1.0ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.6ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (1.0ms) 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)   (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:34:34.509666"], ["updated_at", "2015-10-28 16:34:34.509666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:34:34.549387"], ["updated_at", "2015-10-28 16:34:34.549387"]]  (0.2ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_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.567622"], ["updated_at", "2015-10-28 16:34:34.567622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.583468"], ["updated_at", "2015-10-28 16:34:34.583468"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 16:34:34.589651"], ["updated_at", "2015-10-28 16:34:34.589651"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 16:34:34.600012"], ["updated_at", "2015-10-28 16:34:34.600012"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.6ms) SQL (0.1ms) 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: 7bit

user3

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 16:34:34.790528"], ["updated_at", "2015-10-28 16:34:34.790528"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [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] NotifyWith::Notification Load (0.1ms) 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] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [42f7f9d1-4aea-4f8a-8629-e52802f87259] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [42f7f9d1-4aea-4f8a-8629-e52802f87259] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["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] SQL (0.1ms) 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: 7bit

user4

message body

[ActiveJob] [ActionMailer::DeliveryJob] [42f7f9d1-4aea-4f8a-8629-e52802f87259] Performed ActionMailer::DeliveryJob from Inline(mailers) in 15.14ms  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 16:34:34.838828"], ["updated_at", "2015-10-28 16:34:34.838828"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.5ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:34:34.853976"], ["updated_at", "2015-10-28 16:34:34.853976"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:34:34.857456"], ["updated_at", "2015-10-28 16:34:34.857456"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.858568"], ["updated_at", "2015-10-28 16:34:34.858568"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 16:34:34.864844"], ["updated_at", "2015-10-28 16:34:34.864844"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 16:34:34.869723"], ["updated_at", "2015-10-28 16:34:34.869723"]]  (0.0ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.870835"], ["updated_at", "2015-10-28 16:34:34.870835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:34:34.877038"], ["updated_at", "2015-10-28 16:34:34.877038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:34:34.882062"], ["updated_at", "2015-10-28 16:34:34.882062"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.883579"], ["updated_at", "2015-10-28 16:34:34.883579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:34:34.892383"], ["updated_at", "2015-10-28 16:34:34.892383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 16:34:34.900777"], ["updated_at", "2015-10-28 16:34:34.900777"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 16:34:34.905417"], ["updated_at", "2015-10-28 16:34:34.905417"]]  (0.0ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.906496"], ["updated_at", "2015-10-28 16:34:34.906496"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 16:34:34.913019"], ["updated_at", "2015-10-28 16:34:34.913019"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.929658"], ["updated_at", "2015-10-28 16:34:34.929658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:34:34.933931"], ["updated_at", "2015-10-28 16:34:34.933931"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) 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"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:34:34.943291"], ["updated_at", "2015-10-28 16:34:34.943291"]]  (0.2ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.947042"], ["updated_at", "2015-10-28 16:34:34.947042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.949243"], ["updated_at", "2015-10-28 16:34:34.949243"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) 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)  (0.1ms) select sqlite_version(*)  (0.8ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.8ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) 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)   (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (8.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) 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)  (0.1ms) select sqlite_version(*)  (1.0ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.9ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.8ms) 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)   (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:35:35.770832"], ["updated_at", "2015-10-28 16:35:35.770832"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:35:35.807092"], ["updated_at", "2015-10-28 16:35:35.807092"]]  (0.2ms) SELECT "users"."id" FROM "users" SQL (0.3ms) INSERT INTO "notification_type_configurations" ("notification_type_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.825733"], ["updated_at", "2015-10-28 16:35:35.825733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.843845"], ["updated_at", "2015-10-28 16:35:35.843845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 16:35:35.849731"], ["updated_at", "2015-10-28 16:35:35.849731"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 16:35:35.863159"], ["updated_at", "2015-10-28 16:35:35.863159"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (3.1ms) SQL (0.1ms) 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: 7bit

user3

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 16:35:36.054042"], ["updated_at", "2015-10-28 16:35:36.054042"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [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] NotifyWith::Notification Load (0.1ms) 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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c462d123-853f-4c9f-8640-4db74b7f3af7] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c462d123-853f-4c9f-8640-4db74b7f3af7] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["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] SQL (0.0ms) 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: 7bit

user4

message body

[ActiveJob] [ActionMailer::DeliveryJob] [c462d123-853f-4c9f-8640-4db74b7f3af7] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.87ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 16:35:36.089061"], ["updated_at", "2015-10-28 16:35:36.089061"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:35:36.099971"], ["updated_at", "2015-10-28 16:35:36.099971"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:35:36.103641"], ["updated_at", "2015-10-28 16:35:36.103641"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.3ms) INSERT INTO "notification_type_configurations" ("notification_type_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.105322"], ["updated_at", "2015-10-28 16:35:36.105322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 16:35:36.117556"], ["updated_at", "2015-10-28 16:35:36.117556"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 16:35:36.122691"], ["updated_at", "2015-10-28 16:35:36.122691"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.124145"], ["updated_at", "2015-10-28 16:35:36.124145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:35:36.129494"], ["updated_at", "2015-10-28 16:35:36.129494"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:35:36.133676"], ["updated_at", "2015-10-28 16:35:36.133676"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.135070"], ["updated_at", "2015-10-28 16:35:36.135070"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:35:36.139803"], ["updated_at", "2015-10-28 16:35:36.139803"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 16:35:36.146737"], ["updated_at", "2015-10-28 16:35:36.146737"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 16:35:36.152725"], ["updated_at", "2015-10-28 16:35:36.152725"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.3ms) 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.154260"], ["updated_at", "2015-10-28 16:35:36.154260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.3ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 16:35:36.168148"], ["updated_at", "2015-10-28 16:35:36.168148"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.182300"], ["updated_at", "2015-10-28 16:35:36.182300"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:35:36.185787"], ["updated_at", "2015-10-28 16:35:36.185787"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:35:36.189176"], ["updated_at", "2015-10-28 16:35:36.189176"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.190251"], ["updated_at", "2015-10-28 16:35:36.190251"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:35:36.195613"], ["updated_at", "2015-10-28 16:35:36.195613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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:35:36.198277"], ["updated_at", "2015-10-28 16:35:36.198277"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 2]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.0ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) 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)  (0.1ms) select sqlite_version(*)  (0.7ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.8ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.8ms) 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)   (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:07.596653"], ["updated_at", "2015-10-28 16:39:07.596653"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:07.633764"], ["updated_at", "2015-10-28 16:39:07.633764"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_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.653978"], ["updated_at", "2015-10-28 16:39:07.653978"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.669940"], ["updated_at", "2015-10-28 16:39:07.669940"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 16:39:07.675481"], ["updated_at", "2015-10-28 16:39:07.675481"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 16:39:07.680569"], ["updated_at", "2015-10-28 16:39:07.680569"]]  (0.0ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.681708"], ["updated_at", "2015-10-28 16:39:07.681708"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 16:39:07.690078"], ["updated_at", "2015-10-28 16:39:07.690078"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 16:39:07.695573"], ["updated_at", "2015-10-28 16:39:07.695573"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.696844"], ["updated_at", "2015-10-28 16:39:07.696844"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 16:39:07.704961"], ["updated_at", "2015-10-28 16:39:07.704961"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.8ms) NotificationsMailer#send_mail_by: processed outbound mail in 166.7ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:07.885208"], ["updated_at", "2015-10-28 16:39:07.885208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:07.889322"], ["updated_at", "2015-10-28 16:39:07.889322"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.890564"], ["updated_at", "2015-10-28 16:39:07.890564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.892396"], ["updated_at", "2015-10-28 16:39:07.892396"]]  (0.0ms) 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] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e6a52b5a-1907-4931-b4fd-dcb9d27076ec] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e6a52b5a-1907-4931-b4fd-dcb9d27076ec] NotifyWith::NotificationType Load (0.1ms) 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  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 16:39:07.925874"], ["updated_at", "2015-10-28 16:39:07.925874"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:07.937916"], ["updated_at", "2015-10-28 16:39:07.937916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:07.946437"], ["updated_at", "2015-10-28 16:39:07.946437"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.947778"], ["updated_at", "2015-10-28 16:39:07.947778"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 16:39:07.953287"], ["updated_at", "2015-10-28 16:39:07.953287"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 16:39:07.957723"], ["updated_at", "2015-10-28 16:39:07.957723"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.958884"], ["updated_at", "2015-10-28 16:39:07.958884"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:07.963835"], ["updated_at", "2015-10-28 16:39:07.963835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:07.967214"], ["updated_at", "2015-10-28 16:39:07.967214"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.968310"], ["updated_at", "2015-10-28 16:39:07.968310"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:07.971885"], ["updated_at", "2015-10-28 16:39:07.971885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 16:39:07.979180"], ["updated_at", "2015-10-28 16:39:07.979180"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 16:39:07.986940"], ["updated_at", "2015-10-28 16:39:07.986940"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.3ms) 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.990653"], ["updated_at", "2015-10-28 16:39:07.990653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 16:39:07.999836"], ["updated_at", "2015-10-28 16:39:07.999836"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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:08.015996"], ["updated_at", "2015-10-28 16:39:08.015996"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:08.019722"], ["updated_at", "2015-10-28 16:39:08.019722"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:08.025252"], ["updated_at", "2015-10-28 16:39:08.025252"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.026982"], ["updated_at", "2015-10-28 16:39:08.026982"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:08.032779"], ["updated_at", "2015-10-28 16:39:08.032779"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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:08.036055"], ["updated_at", "2015-10-28 16:39:08.036055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 2]] NotifyWith::Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (1.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (9.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.2ms) 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)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.9ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) 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)   (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:45.178191"], ["updated_at", "2015-10-28 16:39:45.178191"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:45.215242"], ["updated_at", "2015-10-28 16:39:45.215242"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.3ms) INSERT INTO "notification_type_configurations" ("notification_type_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.232308"], ["updated_at", "2015-10-28 16:39:45.232308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.244832"], ["updated_at", "2015-10-28 16:39:45.244832"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (8.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 16:39:45.260115"], ["updated_at", "2015-10-28 16:39:45.260115"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 16:39:45.266057"], ["updated_at", "2015-10-28 16:39:45.266057"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.267421"], ["updated_at", "2015-10-28 16:39:45.267421"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 16:39:45.275685"], ["updated_at", "2015-10-28 16:39:45.275685"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 16:39:45.280434"], ["updated_at", "2015-10-28 16:39:45.280434"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.281621"], ["updated_at", "2015-10-28 16:39:45.281621"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 16:39:45.289738"], ["updated_at", "2015-10-28 16:39:45.289738"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.1ms) SQL (0.1ms) 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: 7bit

user6

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 16:39:45.454211"], ["updated_at", "2015-10-28 16:39:45.454211"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [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] NotifyWith::Notification Load (0.1ms) 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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [ec72b3cf-abda-4583-9799-5a5368fa910e] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [ec72b3cf-abda-4583-9799-5a5368fa910e] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["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] SQL (0.1ms) 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: 7bit

user7

message body

[ActiveJob] [ActionMailer::DeliveryJob] [ec72b3cf-abda-4583-9799-5a5368fa910e] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.78ms  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 16:39:45.483351"], ["updated_at", "2015-10-28 16:39:45.483351"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:45.494686"], ["updated_at", "2015-10-28 16:39:45.494686"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:45.498786"], ["updated_at", "2015-10-28 16:39:45.498786"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.499912"], ["updated_at", "2015-10-28 16:39:45.499912"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 16:39:45.509186"], ["updated_at", "2015-10-28 16:39:45.509186"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 16:39:45.517754"], ["updated_at", "2015-10-28 16:39:45.517754"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.519203"], ["updated_at", "2015-10-28 16:39:45.519203"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:45.524058"], ["updated_at", "2015-10-28 16:39:45.524058"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:45.527566"], ["updated_at", "2015-10-28 16:39:45.527566"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.528695"], ["updated_at", "2015-10-28 16:39:45.528695"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:45.532245"], ["updated_at", "2015-10-28 16:39:45.532245"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 16:39:45.537464"], ["updated_at", "2015-10-28 16:39:45.537464"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 16:39:45.542032"], ["updated_at", "2015-10-28 16:39:45.542032"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.544841"], ["updated_at", "2015-10-28 16:39:45.544841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 16:39:45.552920"], ["updated_at", "2015-10-28 16:39:45.552920"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.3ms) SELECT "users"."id" FROM "users" SQL (0.3ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.572040"], ["updated_at", "2015-10-28 16:39:45.572040"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:45.575460"], ["updated_at", "2015-10-28 16:39:45.575460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:45.579055"], ["updated_at", "2015-10-28 16:39:45.579055"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.580207"], ["updated_at", "2015-10-28 16:39:45.580207"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:45.583831"], ["updated_at", "2015-10-28 16:39:45.583831"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.585811"], ["updated_at", "2015-10-28 16:39:45.585811"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 2]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (8.6ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) 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)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.8ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.9ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) 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)   (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:59.115788"], ["updated_at", "2015-10-28 16:39:59.115788"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:59.150573"], ["updated_at", "2015-10-28 16:39:59.150573"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.4ms) INSERT INTO "notification_type_configurations" ("notification_type_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.161715"], ["updated_at", "2015-10-28 16:39:59.161715"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.180800"], ["updated_at", "2015-10-28 16:39:59.180800"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (9.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 16:39:59.196033"], ["updated_at", "2015-10-28 16:39:59.196033"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 16:39:59.201889"], ["updated_at", "2015-10-28 16:39:59.201889"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.203178"], ["updated_at", "2015-10-28 16:39:59.203178"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 16:39:59.212147"], ["updated_at", "2015-10-28 16:39:59.212147"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 16:39:59.216910"], ["updated_at", "2015-10-28 16:39:59.216910"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.218124"], ["updated_at", "2015-10-28 16:39:59.218124"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 16:39:59.226206"], ["updated_at", "2015-10-28 16:39:59.226206"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.0ms) SQL (0.1ms) 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: 7bit

user6

message body

 (8.8ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 16:39:59.385233"], ["updated_at", "2015-10-28 16:39:59.385233"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [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] NotifyWith::Notification Load (0.1ms) 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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [fd375791-6228-423e-98a1-218f912b7b43] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [fd375791-6228-423e-98a1-218f912b7b43] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["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] SQL (0.1ms) 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: 7bit

user7

message body

[ActiveJob] [ActionMailer::DeliveryJob] [fd375791-6228-423e-98a1-218f912b7b43] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.05ms  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 16:39:59.413262"], ["updated_at", "2015-10-28 16:39:59.413262"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:59.424339"], ["updated_at", "2015-10-28 16:39:59.424339"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.3ms) SELECT "notification_types"."id" FROM "notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.6ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:59.431793"], ["updated_at", "2015-10-28 16:39:59.431793"]]  (0.2ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_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.436233"], ["updated_at", "2015-10-28 16:39:59.436233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 16:39:59.443418"], ["updated_at", "2015-10-28 16:39:59.443418"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 16:39:59.447912"], ["updated_at", "2015-10-28 16:39:59.447912"]]  (0.0ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.448964"], ["updated_at", "2015-10-28 16:39:59.448964"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:59.454063"], ["updated_at", "2015-10-28 16:39:59.454063"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:59.457564"], ["updated_at", "2015-10-28 16:39:59.457564"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.458732"], ["updated_at", "2015-10-28 16:39:59.458732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:59.464531"], ["updated_at", "2015-10-28 16:39:59.464531"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 16:39:59.471831"], ["updated_at", "2015-10-28 16:39:59.471831"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.4ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 16:39:59.481439"], ["updated_at", "2015-10-28 16:39:59.481439"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.2ms) 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.485637"], ["updated_at", "2015-10-28 16:39:59.485637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 16:39:59.493835"], ["updated_at", "2015-10-28 16:39:59.493835"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.505486"], ["updated_at", "2015-10-28 16:39:59.505486"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:59.509018"], ["updated_at", "2015-10-28 16:39:59.509018"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:59.513168"], ["updated_at", "2015-10-28 16:39:59.513168"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.515874"], ["updated_at", "2015-10-28 16:39:59.515874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:59.522174"], ["updated_at", "2015-10-28 16:39:59.522174"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.523928"], ["updated_at", "2015-10-28 16:39:59.523928"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 2]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message') SQL (0.5ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (1.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.2ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.1ms) 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)  (0.1ms) select sqlite_version(*)  (0.8ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.8ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.9ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) 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)   (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:41:45.509412"], ["updated_at", "2015-10-28 16:41:45.509412"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:41:45.543595"], ["updated_at", "2015-10-28 16:41:45.543595"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_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.561906"], ["updated_at", "2015-10-28 16:41:45.561906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.577153"], ["updated_at", "2015-10-28 16:41:45.577153"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 16:41:45.582895"], ["updated_at", "2015-10-28 16:41:45.582895"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 16:41:45.587879"], ["updated_at", "2015-10-28 16:41:45.587879"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.589011"], ["updated_at", "2015-10-28 16:41:45.589011"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 16:41:45.597641"], ["updated_at", "2015-10-28 16:41:45.597641"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 16:41:45.602974"], ["updated_at", "2015-10-28 16:41:45.602974"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.2ms) 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.604277"], ["updated_at", "2015-10-28 16:41:45.604277"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 16:41:45.612531"], ["updated_at", "2015-10-28 16:41:45.612531"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.4ms) SQL (0.1ms) 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: 7bit

user6

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 16:41:45.806544"], ["updated_at", "2015-10-28 16:41:45.806544"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [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] NotifyWith::Notification Load (0.1ms) 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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [1888605b-a0e0-4b19-8bb0-7c2d9f23a763] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [1888605b-a0e0-4b19-8bb0-7c2d9f23a763] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["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] SQL (0.1ms) 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: 7bit

user7

message body

[ActiveJob] [ActionMailer::DeliveryJob] [1888605b-a0e0-4b19-8bb0-7c2d9f23a763] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.68ms  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 16:41:45.843765"], ["updated_at", "2015-10-28 16:41:45.843765"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:41:45.861040"], ["updated_at", "2015-10-28 16:41:45.861040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:41:45.865752"], ["updated_at", "2015-10-28 16:41:45.865752"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.866949"], ["updated_at", "2015-10-28 16:41:45.866949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 16:41:45.873022"], ["updated_at", "2015-10-28 16:41:45.873022"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 16:41:45.877547"], ["updated_at", "2015-10-28 16:41:45.877547"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.878684"], ["updated_at", "2015-10-28 16:41:45.878684"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:41:45.883864"], ["updated_at", "2015-10-28 16:41:45.883864"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:41:45.887450"], ["updated_at", "2015-10-28 16:41:45.887450"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_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.888676"], ["updated_at", "2015-10-28 16:41:45.888676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:41:45.897396"], ["updated_at", "2015-10-28 16:41:45.897396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 16:41:45.908356"], ["updated_at", "2015-10-28 16:41:45.908356"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 16:41:45.915961"], ["updated_at", "2015-10-28 16:41:45.915961"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.917209"], ["updated_at", "2015-10-28 16:41:45.917209"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 16:41:45.923586"], ["updated_at", "2015-10-28 16:41:45.923586"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 16:41:45.928079"], ["updated_at", "2015-10-28 16:41:45.928079"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.929377"], ["updated_at", "2015-10-28 16:41:45.929377"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:41:45.936659"], ["updated_at", "2015-10-28 16:41:45.936659"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:41:45.942399"], ["updated_at", "2015-10-28 16:41:45.942399"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.944113"], ["updated_at", "2015-10-28 16:41:45.944113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:41:45.950442"], ["updated_at", "2015-10-28 16:41:45.950442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.956171"], ["updated_at", "2015-10-28 16:41:45.956171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 16:41:45.963693"], ["updated_at", "2015-10-28 16:41:45.963693"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.980951"], ["updated_at", "2015-10-28 16:41:45.980951"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:41:45.984739"], ["updated_at", "2015-10-28 16:41:45.984739"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:41:45.988481"], ["updated_at", "2015-10-28 16:41:45.988481"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.989639"], ["updated_at", "2015-10-28 16:41:45.989639"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:41:45.993218"], ["updated_at", "2015-10-28 16:41:45.993218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.997001"], ["updated_at", "2015-10-28 16:41:45.997001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 2]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.2ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.5ms) 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)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.8ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (1.0ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:42:18.711499"], ["updated_at", "2015-10-28 16:42:18.711499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:42:18.747475"], ["updated_at", "2015-10-28 16:42:18.747475"]]  (0.3ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_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.767472"], ["updated_at", "2015-10-28 16:42:18.767472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.782348"], ["updated_at", "2015-10-28 16:42:18.782348"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 16:42:18.788260"], ["updated_at", "2015-10-28 16:42:18.788260"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 16:42:18.793557"], ["updated_at", "2015-10-28 16:42:18.793557"]]  (0.0ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.2ms) 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:18.794747"], ["updated_at", "2015-10-28 16:42:18.794747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 16:42:18.803477"], ["updated_at", "2015-10-28 16:42:18.803477"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 16:42:18.808428"], ["updated_at", "2015-10-28 16:42:18.808428"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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:18.809666"], ["updated_at", "2015-10-28 16:42:18.809666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 16:42:18.818086"], ["updated_at", "2015-10-28 16:42:18.818086"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.5ms) SQL (0.1ms) 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: 7bit

user6

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 16:42:19.007786"], ["updated_at", "2015-10-28 16:42:19.007786"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [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] NotifyWith::Notification Load (0.1ms) 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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [32d4f411-3eaa-4b56-a6d7-30043c024f64] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [32d4f411-3eaa-4b56-a6d7-30043c024f64] NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["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] SQL (0.1ms) 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: 7bit

user7

message body

[ActiveJob] [ActionMailer::DeliveryJob] [32d4f411-3eaa-4b56-a6d7-30043c024f64] Performed ActionMailer::DeliveryJob from Inline(mailers) in 10.92ms  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 16:42:19.050900"], ["updated_at", "2015-10-28 16:42:19.050900"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.3ms) SELECT "users"."id" FROM "users" SQL (0.5ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:42:19.069322"], ["updated_at", "2015-10-28 16:42:19.069322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:42:19.073422"], ["updated_at", "2015-10-28 16:42:19.073422"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.074647"], ["updated_at", "2015-10-28 16:42:19.074647"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 16:42:19.081253"], ["updated_at", "2015-10-28 16:42:19.081253"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 16:42:19.086204"], ["updated_at", "2015-10-28 16:42:19.086204"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.087429"], ["updated_at", "2015-10-28 16:42:19.087429"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.9ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:42:19.094428"], ["updated_at", "2015-10-28 16:42:19.094428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:42:19.100143"], ["updated_at", "2015-10-28 16:42:19.100143"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.101462"], ["updated_at", "2015-10-28 16:42:19.101462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:42:19.109966"], ["updated_at", "2015-10-28 16:42:19.109966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 16:42:19.119136"], ["updated_at", "2015-10-28 16:42:19.119136"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 16:42:19.124088"], ["updated_at", "2015-10-28 16:42:19.124088"]]  (0.0ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.2ms) 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.125209"], ["updated_at", "2015-10-28 16:42:19.125209"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 16:42:19.132410"], ["updated_at", "2015-10-28 16:42:19.132410"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 16:42:19.138283"], ["updated_at", "2015-10-28 16:42:19.138283"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.139669"], ["updated_at", "2015-10-28 16:42:19.139669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:42:19.150723"], ["updated_at", "2015-10-28 16:42:19.150723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:42:19.156469"], ["updated_at", "2015-10-28 16:42:19.156469"]]  (0.2ms) SELECT "users"."id" FROM "users" SQL (0.3ms) INSERT INTO "notification_type_configurations" ("notification_type_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.160681"], ["updated_at", "2015-10-28 16:42:19.160681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:42:19.168799"], ["updated_at", "2015-10-28 16:42:19.168799"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.170771"], ["updated_at", "2015-10-28 16:42:19.170771"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 16:42:19.175625"], ["updated_at", "2015-10-28 16:42:19.175625"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.193843"], ["updated_at", "2015-10-28 16:42:19.193843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:42:19.199390"], ["updated_at", "2015-10-28 16:42:19.199390"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:42:19.203429"], ["updated_at", "2015-10-28 16:42:19.203429"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.3ms) INSERT INTO "notification_type_configurations" ("notification_type_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.204826"], ["updated_at", "2015-10-28 16:42:19.204826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:42:19.217492"], ["updated_at", "2015-10-28 16:42:19.217492"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.219555"], ["updated_at", "2015-10-28 16:42:19.219555"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 2]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.9ms) rollback transaction  (1.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.6ms) 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)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (1.0ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:57:46.533162"], ["updated_at", "2015-10-28 16:57:46.533162"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.3ms) INSERT INTO "notification_type_configurations" ("notification_type_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.540660"], ["updated_at", "2015-10-28 16:57:46.540660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 16:57:46.552187"], ["updated_at", "2015-10-28 16:57:46.552187"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:57:46.554222"], ["updated_at", "2015-10-28 16:57:46.554222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.560855"], ["updated_at", "2015-10-28 16:57:46.560855"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:57:46.569497"], ["updated_at", "2015-10-28 16:57:46.569497"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.571452"], ["updated_at", "2015-10-28 16:57:46.571452"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (2.6ms) SQL (0.2ms) 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: 7bit

user3

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:57:46.643451"], ["updated_at", "2015-10-28 16:57:46.643451"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.644698"], ["updated_at", "2015-10-28 16:57:46.644698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user4

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:57:46.657606"], ["updated_at", "2015-10-28 16:57:46.657606"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.658852"], ["updated_at", "2015-10-28 16:57:46.658852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user5

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:57:46.676229"], ["updated_at", "2015-10-28 16:57:46.676229"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_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.678177"], ["updated_at", "2015-10-28 16:57:46.678177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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: 7bit

user6

message body

 (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:57:46.698339"], ["updated_at", "2015-10-28 16:57:46.698339"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.699709"], ["updated_at", "2015-10-28 16:57:46.699709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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: 7bit

user7

message body

 (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) 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)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.8ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 16:58:25.214503"], ["updated_at", "2015-10-28 16:58:25.214503"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:58:25.231323"], ["updated_at", "2015-10-28 16:58:25.231323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.259396"], ["updated_at", "2015-10-28 16:58:25.259396"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:58:25.271412"], ["updated_at", "2015-10-28 16:58:25.271412"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.272619"], ["updated_at", "2015-10-28 16:58:25.272619"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 16:58:25.278640"], ["updated_at", "2015-10-28 16:58:25.278640"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:58:25.280871"], ["updated_at", "2015-10-28 16:58:25.280871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.286315"], ["updated_at", "2015-10-28 16:58:25.286315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (3.1ms) SQL (0.5ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user3

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 16:58:25.360501"], ["updated_at", "2015-10-28 16:58:25.360501"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:58:25.362971"], ["updated_at", "2015-10-28 16:58:25.362971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.368722"], ["updated_at", "2015-10-28 16:58:25.368722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user4

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 16:58:25.377678"], ["updated_at", "2015-10-28 16:58:25.377678"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:58:25.380256"], ["updated_at", "2015-10-28 16:58:25.380256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.386432"], ["updated_at", "2015-10-28 16:58:25.386432"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user5

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 16:58:25.402845"], ["updated_at", "2015-10-28 16:58:25.402845"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:58:25.404871"], ["updated_at", "2015-10-28 16:58:25.404871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.409775"], ["updated_at", "2015-10-28 16:58:25.409775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user6

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 16:58:25.416905"], ["updated_at", "2015-10-28 16:58:25.416905"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:58:25.418788"], ["updated_at", "2015-10-28 16:58:25.418788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.423877"], ["updated_at", "2015-10-28 16:58:25.423877"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) SQL (0.2ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

 (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.2ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.1ms) 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)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.9ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (1.5ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.8ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 16:59:26.597485"], ["updated_at", "2015-10-28 16:59:26.597485"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:59:26.613187"], ["updated_at", "2015-10-28 16:59:26.613187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.639552"], ["updated_at", "2015-10-28 16:59:26.639552"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:59:26.650598"], ["updated_at", "2015-10-28 16:59:26.650598"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.651790"], ["updated_at", "2015-10-28 16:59:26.651790"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 16:59:26.657175"], ["updated_at", "2015-10-28 16:59:26.657175"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:59:26.659074"], ["updated_at", "2015-10-28 16:59:26.659074"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.663930"], ["updated_at", "2015-10-28 16:59:26.663930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.6ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user3

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: 7bit

user3

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 16:59:26.734585"], ["updated_at", "2015-10-28 16:59:26.734585"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:59:26.736717"], ["updated_at", "2015-10-28 16:59:26.736717"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.741712"], ["updated_at", "2015-10-28 16:59:26.741712"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user4

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 16:59:26.748942"], ["updated_at", "2015-10-28 16:59:26.748942"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:59:26.750853"], ["updated_at", "2015-10-28 16:59:26.750853"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.755388"], ["updated_at", "2015-10-28 16:59:26.755388"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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.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: 7bit

user5

message body

 (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 16:59:26.763759"], ["updated_at", "2015-10-28 16:59:26.763759"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:59:26.765917"], ["updated_at", "2015-10-28 16:59:26.765917"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.774635"], ["updated_at", "2015-10-28 16:59:26.774635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user6

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 16:59:26.783121"], ["updated_at", "2015-10-28 16:59:26.783121"]]  (0.3ms) SELECT "notification_types"."id" FROM "notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:59:26.788131"], ["updated_at", "2015-10-28 16:59:26.788131"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.799127"], ["updated_at", "2015-10-28 16:59:26.799127"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

 (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.2ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) 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)  (0.1ms) select sqlite_version(*)  (1.0ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.9ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 16:59:50.345944"], ["updated_at", "2015-10-28 16:59:50.345944"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:59:50.359584"], ["updated_at", "2015-10-28 16:59:50.359584"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.385168"], ["updated_at", "2015-10-28 16:59:50.385168"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:59:50.395132"], ["updated_at", "2015-10-28 16:59:50.395132"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.396319"], ["updated_at", "2015-10-28 16:59:50.396319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 16:59:50.403196"], ["updated_at", "2015-10-28 16:59:50.403196"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:59:50.405241"], ["updated_at", "2015-10-28 16:59:50.405241"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.410026"], ["updated_at", "2015-10-28 16:59:50.410026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.6ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user3

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: 7bit

user3

message body

 (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 16:59:50.480246"], ["updated_at", "2015-10-28 16:59:50.480246"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:59:50.482530"], ["updated_at", "2015-10-28 16:59:50.482530"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.489834"], ["updated_at", "2015-10-28 16:59:50.489834"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user4

message body

 (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 16:59:50.498520"], ["updated_at", "2015-10-28 16:59:50.498520"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:59:50.500517"], ["updated_at", "2015-10-28 16:59:50.500517"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.4ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.511834"], ["updated_at", "2015-10-28 16:59:50.511834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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 (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: 7bit

user5

message body

 (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 16:59:50.522617"], ["updated_at", "2015-10-28 16:59:50.522617"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:59:50.524799"], ["updated_at", "2015-10-28 16:59:50.524799"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.529748"], ["updated_at", "2015-10-28 16:59:50.529748"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 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: 7bit

user6

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 16:59:50.537103"], ["updated_at", "2015-10-28 16:59:50.537103"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:59:50.539319"], ["updated_at", "2015-10-28 16:59:50.539319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.548362"], ["updated_at", "2015-10-28 16:59:50.548362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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.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: 7bit

user7

message body

 (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) 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)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.9ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.9ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 17:00:19.134278"], ["updated_at", "2015-10-28 17:00:19.134278"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:00:19.150726"], ["updated_at", "2015-10-28 17:00:19.150726"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.177671"], ["updated_at", "2015-10-28 17:00:19.177671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:00:19.188003"], ["updated_at", "2015-10-28 17:00:19.188003"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.189195"], ["updated_at", "2015-10-28 17:00:19.189195"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 17:00:19.194608"], ["updated_at", "2015-10-28 17:00:19.194608"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:00:19.196416"], ["updated_at", "2015-10-28 17:00:19.196416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.200797"], ["updated_at", "2015-10-28 17:00:19.200797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.4ms) SQL (0.2ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user3

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: 7bit

user3

message body

 (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 17:00:19.263998"], ["updated_at", "2015-10-28 17:00:19.263998"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:00:19.266075"], ["updated_at", "2015-10-28 17:00:19.266075"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.270732"], ["updated_at", "2015-10-28 17:00:19.270732"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 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: 7bit

user4

message body

 (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 17:00:19.279320"], ["updated_at", "2015-10-28 17:00:19.279320"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:00:19.281672"], ["updated_at", "2015-10-28 17:00:19.281672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.288976"], ["updated_at", "2015-10-28 17:00:19.288976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.2ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user5

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 17:00:19.302574"], ["updated_at", "2015-10-28 17:00:19.302574"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:00:19.304553"], ["updated_at", "2015-10-28 17:00:19.304553"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.309031"], ["updated_at", "2015-10-28 17:00:19.309031"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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.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: 7bit

user6

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 17:00:19.315894"], ["updated_at", "2015-10-28 17:00:19.315894"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:00:19.317770"], ["updated_at", "2015-10-28 17:00:19.317770"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.323245"], ["updated_at", "2015-10-28 17:00:19.323245"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

 (0.9ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.2ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.2ms) 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)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.9ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.9ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 17:01:15.526948"], ["updated_at", "2015-10-28 17:01:15.526948"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:01:15.541300"], ["updated_at", "2015-10-28 17:01:15.541300"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.564770"], ["updated_at", "2015-10-28 17:01:15.564770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:01:15.575335"], ["updated_at", "2015-10-28 17:01:15.575335"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.576445"], ["updated_at", "2015-10-28 17:01:15.576445"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 17:01:15.581476"], ["updated_at", "2015-10-28 17:01:15.581476"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:01:15.583322"], ["updated_at", "2015-10-28 17:01:15.583322"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.587866"], ["updated_at", "2015-10-28 17:01:15.587866"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.4ms) SQL (0.2ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user3

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: 7bit

user3

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 17:01:15.652794"], ["updated_at", "2015-10-28 17:01:15.652794"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:01:15.654836"], ["updated_at", "2015-10-28 17:01:15.654836"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.659522"], ["updated_at", "2015-10-28 17:01:15.659522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user4

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 17:01:15.669465"], ["updated_at", "2015-10-28 17:01:15.669465"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:01:15.671725"], ["updated_at", "2015-10-28 17:01:15.671725"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" SQL (0.3ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.684351"], ["updated_at", "2015-10-28 17:01:15.684351"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 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: 7bit

user5

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 17:01:15.692401"], ["updated_at", "2015-10-28 17:01:15.692401"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:01:15.694321"], ["updated_at", "2015-10-28 17:01:15.694321"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.698811"], ["updated_at", "2015-10-28 17:01:15.698811"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 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: 7bit

user6

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 17:01:15.705848"], ["updated_at", "2015-10-28 17:01:15.705848"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:01:15.707769"], ["updated_at", "2015-10-28 17:01:15.707769"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.713850"], ["updated_at", "2015-10-28 17:01:15.713850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

 (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.1ms) 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)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.9ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.9ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 17:01:38.278970"], ["updated_at", "2015-10-28 17:01:38.278970"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:01:38.293338"], ["updated_at", "2015-10-28 17:01:38.293338"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.317712"], ["updated_at", "2015-10-28 17:01:38.317712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:01:38.328157"], ["updated_at", "2015-10-28 17:01:38.328157"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.329309"], ["updated_at", "2015-10-28 17:01:38.329309"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 17:01:38.334230"], ["updated_at", "2015-10-28 17:01:38.334230"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:01:38.336021"], ["updated_at", "2015-10-28 17:01:38.336021"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.340293"], ["updated_at", "2015-10-28 17:01:38.340293"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.7ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user3

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: 7bit

user3

message body

 (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 17:01:38.412190"], ["updated_at", "2015-10-28 17:01:38.412190"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:01:38.414423"], ["updated_at", "2015-10-28 17:01:38.414423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.422954"], ["updated_at", "2015-10-28 17:01:38.422954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user4

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 17:01:38.430956"], ["updated_at", "2015-10-28 17:01:38.430956"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:01:38.432913"], ["updated_at", "2015-10-28 17:01:38.432913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.3ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.444282"], ["updated_at", "2015-10-28 17:01:38.444282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user5

message body

 (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 17:01:38.453891"], ["updated_at", "2015-10-28 17:01:38.453891"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:01:38.455727"], ["updated_at", "2015-10-28 17:01:38.455727"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.460090"], ["updated_at", "2015-10-28 17:01:38.460090"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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.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: 7bit

user6

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 17:01:38.466745"], ["updated_at", "2015-10-28 17:01:38.466745"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:01:38.468596"], ["updated_at", "2015-10-28 17:01:38.468596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.473029"], ["updated_at", "2015-10-28 17:01:38.473029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

 (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.0ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) 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)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.8ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 17:02:18.700170"], ["updated_at", "2015-10-28 17:02:18.700170"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:02:18.716494"], ["updated_at", "2015-10-28 17:02:18.716494"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.740761"], ["updated_at", "2015-10-28 17:02:18.740761"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:02:18.749949"], ["updated_at", "2015-10-28 17:02:18.749949"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.751060"], ["updated_at", "2015-10-28 17:02:18.751060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 17:02:18.756069"], ["updated_at", "2015-10-28 17:02:18.756069"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:02:18.757846"], ["updated_at", "2015-10-28 17:02:18.757846"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.762233"], ["updated_at", "2015-10-28 17:02:18.762233"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.3ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user3

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 17:02:18.823394"], ["updated_at", "2015-10-28 17:02:18.823394"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:02:18.825396"], ["updated_at", "2015-10-28 17:02:18.825396"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.830112"], ["updated_at", "2015-10-28 17:02:18.830112"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user4

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 17:02:18.837370"], ["updated_at", "2015-10-28 17:02:18.837370"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:02:18.839527"], ["updated_at", "2015-10-28 17:02:18.839527"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.845065"], ["updated_at", "2015-10-28 17:02:18.845065"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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.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: 7bit

user5

message body

 (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 17:02:18.853743"], ["updated_at", "2015-10-28 17:02:18.853743"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:02:18.855725"], ["updated_at", "2015-10-28 17:02:18.855725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.863756"], ["updated_at", "2015-10-28 17:02:18.863756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user6

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 17:02:18.871814"], ["updated_at", "2015-10-28 17:02:18.871814"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:02:18.875974"], ["updated_at", "2015-10-28 17:02:18.875974"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.887940"], ["updated_at", "2015-10-28 17:02:18.887940"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

 (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.2ms) 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)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.8ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.9ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (1.0ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 17:03:30.561843"], ["updated_at", "2015-10-28 17:03:30.561843"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:03:30.577313"], ["updated_at", "2015-10-28 17:03:30.577313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.603725"], ["updated_at", "2015-10-28 17:03:30.603725"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:03:30.613488"], ["updated_at", "2015-10-28 17:03:30.613488"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.614689"], ["updated_at", "2015-10-28 17:03:30.614689"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 17:03:30.620009"], ["updated_at", "2015-10-28 17:03:30.620009"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:03:30.621998"], ["updated_at", "2015-10-28 17:03:30.621998"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.626883"], ["updated_at", "2015-10-28 17:03:30.626883"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.7ms) SQL (0.2ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user3

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 17:03:30.691992"], ["updated_at", "2015-10-28 17:03:30.691992"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:03:30.694390"], ["updated_at", "2015-10-28 17:03:30.694390"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.700017"], ["updated_at", "2015-10-28 17:03:30.700017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user4

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 17:03:30.708213"], ["updated_at", "2015-10-28 17:03:30.708213"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:03:30.710384"], ["updated_at", "2015-10-28 17:03:30.710384"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.715853"], ["updated_at", "2015-10-28 17:03:30.715853"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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.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: 7bit

user5

message body

 (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 17:03:30.726489"], ["updated_at", "2015-10-28 17:03:30.726489"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:03:30.729175"], ["updated_at", "2015-10-28 17:03:30.729175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.736560"], ["updated_at", "2015-10-28 17:03:30.736560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.3ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user6

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 17:03:30.752244"], ["updated_at", "2015-10-28 17:03:30.752244"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:03:30.754443"], ["updated_at", "2015-10-28 17:03:30.754443"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.759655"], ["updated_at", "2015-10-28 17:03:30.759655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 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: 7bit

user7

message body

 (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.1ms) 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)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.8ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 17:04:44.540195"], ["updated_at", "2015-10-28 17:04:44.540195"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:04:44.556282"], ["updated_at", "2015-10-28 17:04:44.556282"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.580666"], ["updated_at", "2015-10-28 17:04:44.580666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:04:44.591048"], ["updated_at", "2015-10-28 17:04:44.591048"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.592197"], ["updated_at", "2015-10-28 17:04:44.592197"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 17:04:44.597332"], ["updated_at", "2015-10-28 17:04:44.597332"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:04:44.599136"], ["updated_at", "2015-10-28 17:04:44.599136"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.603430"], ["updated_at", "2015-10-28 17:04:44.603430"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.5ms) SQL (0.2ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user3

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 17:04:44.666462"], ["updated_at", "2015-10-28 17:04:44.666462"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:04:44.668663"], ["updated_at", "2015-10-28 17:04:44.668663"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.673623"], ["updated_at", "2015-10-28 17:04:44.673623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user4

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 17:04:44.680938"], ["updated_at", "2015-10-28 17:04:44.680938"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:04:44.682813"], ["updated_at", "2015-10-28 17:04:44.682813"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.687375"], ["updated_at", "2015-10-28 17:04:44.687375"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 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: 7bit

user5

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 17:04:44.695067"], ["updated_at", "2015-10-28 17:04:44.695067"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:04:44.696997"], ["updated_at", "2015-10-28 17:04:44.696997"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.703929"], ["updated_at", "2015-10-28 17:04:44.703929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user6

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 17:04:44.712139"], ["updated_at", "2015-10-28 17:04:44.712139"]]  (0.3ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:04:44.718559"], ["updated_at", "2015-10-28 17:04:44.718559"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.727801"], ["updated_at", "2015-10-28 17:04:44.727801"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

 (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) 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)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.8ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 17:05:28.035717"], ["updated_at", "2015-10-28 17:05:28.035717"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:05:28.051338"], ["updated_at", "2015-10-28 17:05:28.051338"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.077501"], ["updated_at", "2015-10-28 17:05:28.077501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:05:28.087393"], ["updated_at", "2015-10-28 17:05:28.087393"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.088592"], ["updated_at", "2015-10-28 17:05:28.088592"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 17:05:28.094070"], ["updated_at", "2015-10-28 17:05:28.094070"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:05:28.096072"], ["updated_at", "2015-10-28 17:05:28.096072"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.100855"], ["updated_at", "2015-10-28 17:05:28.100855"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.6ms) SQL (0.2ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user3

message body

 (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 17:05:28.145680"], ["updated_at", "2015-10-28 17:05:28.145680"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:05:28.147878"], ["updated_at", "2015-10-28 17:05:28.147878"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.152867"], ["updated_at", "2015-10-28 17:05:28.152867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user4

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 17:05:28.160290"], ["updated_at", "2015-10-28 17:05:28.160290"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:05:28.162437"], ["updated_at", "2015-10-28 17:05:28.162437"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.167466"], ["updated_at", "2015-10-28 17:05:28.167466"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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 (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: 7bit

user5

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 17:05:28.175709"], ["updated_at", "2015-10-28 17:05:28.175709"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:05:28.177893"], ["updated_at", "2015-10-28 17:05:28.177893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.186813"], ["updated_at", "2015-10-28 17:05:28.186813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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.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: 7bit

user6

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 17:05:28.194688"], ["updated_at", "2015-10-28 17:05:28.194688"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:05:28.198368"], ["updated_at", "2015-10-28 17:05:28.198368"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.210468"], ["updated_at", "2015-10-28 17:05:28.210468"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

 (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) 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)  (0.1ms) select sqlite_version(*)  (0.8ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.8ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 17:05:49.674422"], ["updated_at", "2015-10-28 17:05:49.674422"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:05:49.689004"], ["updated_at", "2015-10-28 17:05:49.689004"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.713958"], ["updated_at", "2015-10-28 17:05:49.713958"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:05:49.723534"], ["updated_at", "2015-10-28 17:05:49.723534"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.724645"], ["updated_at", "2015-10-28 17:05:49.724645"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 17:05:49.729696"], ["updated_at", "2015-10-28 17:05:49.729696"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:05:49.731599"], ["updated_at", "2015-10-28 17:05:49.731599"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.736229"], ["updated_at", "2015-10-28 17:05:49.736229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.9ms) SQL (0.2ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user3

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 17:05:49.773830"], ["updated_at", "2015-10-28 17:05:49.773830"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:05:49.779463"], ["updated_at", "2015-10-28 17:05:49.779463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.789236"], ["updated_at", "2015-10-28 17:05:49.789236"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user4

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 17:05:49.796236"], ["updated_at", "2015-10-28 17:05:49.796236"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:05:49.798096"], ["updated_at", "2015-10-28 17:05:49.798096"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.802849"], ["updated_at", "2015-10-28 17:05:49.802849"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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 (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: 7bit

user5

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 17:05:49.811030"], ["updated_at", "2015-10-28 17:05:49.811030"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:05:49.814045"], ["updated_at", "2015-10-28 17:05:49.814045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.820968"], ["updated_at", "2015-10-28 17:05:49.820968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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.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: 7bit

user6

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 17:05:49.828436"], ["updated_at", "2015-10-28 17:05:49.828436"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:05:49.835808"], ["updated_at", "2015-10-28 17:05:49.835808"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.845355"], ["updated_at", "2015-10-28 17:05:49.845355"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

 (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.2ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) 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)  (0.1ms) select sqlite_version(*)  (0.7ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.8ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.9ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.8ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 17:06:33.959490"], ["updated_at", "2015-10-28 17:06:33.959490"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:06:33.975307"], ["updated_at", "2015-10-28 17:06:33.975307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.000391"], ["updated_at", "2015-10-28 17:06:34.000391"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:06:34.009671"], ["updated_at", "2015-10-28 17:06:34.009671"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.010791"], ["updated_at", "2015-10-28 17:06:34.010791"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 17:06:34.015714"], ["updated_at", "2015-10-28 17:06:34.015714"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:06:34.017597"], ["updated_at", "2015-10-28 17:06:34.017597"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.022157"], ["updated_at", "2015-10-28 17:06:34.022157"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:06:34.060015"], ["updated_at", "2015-10-28 17:06:34.060015"]]  (0.2ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.063747"], ["updated_at", "2015-10-28 17:06:34.063747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.5ms) SQL (0.2ms) 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: 7bit

user4

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:06:34.107325"], ["updated_at", "2015-10-28 17:06:34.107325"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.108539"], ["updated_at", "2015-10-28 17:06:34.108539"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.2ms) 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: 7bit

user5

message body

 (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:06:34.130225"], ["updated_at", "2015-10-28 17:06:34.130225"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.131396"], ["updated_at", "2015-10-28 17:06:34.131396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user6

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:06:34.144360"], ["updated_at", "2015-10-28 17:06:34.144360"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_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.145515"], ["updated_at", "2015-10-28 17:06:34.145515"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user7

message body

 (1.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) 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)  (0.1ms) select sqlite_version(*)  (0.8ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.8ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 09:25:07.513895"], ["updated_at", "2015-10-29 09:25:07.513895"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:25:07.528623"], ["updated_at", "2015-10-29 09:25:07.528623"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.553885"], ["updated_at", "2015-10-29 09:25:07.553885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:25:07.563684"], ["updated_at", "2015-10-29 09:25:07.563684"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.564865"], ["updated_at", "2015-10-29 09:25:07.564865"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 09:25:07.570202"], ["updated_at", "2015-10-29 09:25:07.570202"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:25:07.572182"], ["updated_at", "2015-10-29 09:25:07.572182"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.577027"], ["updated_at", "2015-10-29 09:25:07.577027"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (1.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:25:07.621133"], ["updated_at", "2015-10-29 09:25:07.621133"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.622993"], ["updated_at", "2015-10-29 09:25:07.622993"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.8ms) SQL (0.1ms) 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: 7bit

user4

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:25:07.673867"], ["updated_at", "2015-10-29 09:25:07.673867"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.675065"], ["updated_at", "2015-10-29 09:25:07.675065"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user5

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:25:07.688979"], ["updated_at", "2015-10-29 09:25:07.688979"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.690188"], ["updated_at", "2015-10-29 09:25:07.690188"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user6

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:25:07.704716"], ["updated_at", "2015-10-29 09:25:07.704716"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.706961"], ["updated_at", "2015-10-29 09:25:07.706961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user7

message body

 (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (8.2ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) 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)  (0.1ms) select sqlite_version(*)  (0.8ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.8ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 09:25:22.242289"], ["updated_at", "2015-10-29 09:25:22.242289"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:25:22.253216"], ["updated_at", "2015-10-29 09:25:22.253216"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.273824"], ["updated_at", "2015-10-29 09:25:22.273824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (8.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:25:22.291905"], ["updated_at", "2015-10-29 09:25:22.291905"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.293189"], ["updated_at", "2015-10-29 09:25:22.293189"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 09:25:22.298386"], ["updated_at", "2015-10-29 09:25:22.298386"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:25:22.300647"], ["updated_at", "2015-10-29 09:25:22.300647"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.305860"], ["updated_at", "2015-10-29 09:25:22.305860"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:25:22.332527"], ["updated_at", "2015-10-29 09:25:22.332527"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.334117"], ["updated_at", "2015-10-29 09:25:22.334117"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.0ms) SQL (0.1ms) 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: 7bit

user4

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:25:22.374195"], ["updated_at", "2015-10-29 09:25:22.374195"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.376258"], ["updated_at", "2015-10-29 09:25:22.376258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user5

message body

 (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:25:22.402323"], ["updated_at", "2015-10-29 09:25:22.402323"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.403774"], ["updated_at", "2015-10-29 09:25:22.403774"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user6

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:25:22.416913"], ["updated_at", "2015-10-29 09:25:22.416913"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.418419"], ["updated_at", "2015-10-29 09:25:22.418419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user7

message body

 (0.9ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (8.2ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.3ms) 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)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.8ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.9ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.8ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 09:26:14.502595"], ["updated_at", "2015-10-29 09:26:14.502595"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:26:14.513362"], ["updated_at", "2015-10-29 09:26:14.513362"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.534282"], ["updated_at", "2015-10-29 09:26:14.534282"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (9.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:26:14.553614"], ["updated_at", "2015-10-29 09:26:14.553614"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.554824"], ["updated_at", "2015-10-29 09:26:14.554824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 09:26:14.559957"], ["updated_at", "2015-10-29 09:26:14.559957"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:26:14.562145"], ["updated_at", "2015-10-29 09:26:14.562145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.566733"], ["updated_at", "2015-10-29 09:26:14.566733"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:26:14.591743"], ["updated_at", "2015-10-29 09:26:14.591743"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.593663"], ["updated_at", "2015-10-29 09:26:14.593663"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.0ms) SQL (0.2ms) 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: 7bit

user4

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:26:14.632384"], ["updated_at", "2015-10-29 09:26:14.632384"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.633611"], ["updated_at", "2015-10-29 09:26:14.633611"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user5

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:26:14.654868"], ["updated_at", "2015-10-29 09:26:14.654868"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.659381"], ["updated_at", "2015-10-29 09:26:14.659381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user6

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:26:14.673964"], ["updated_at", "2015-10-29 09:26:14.673964"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.675204"], ["updated_at", "2015-10-29 09:26:14.675204"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user7

message body

 (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (9.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.5ms) 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)  (0.1ms) select sqlite_version(*)  (2.0ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (1.1ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (1.1ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.8ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 09:26:32.714482"], ["updated_at", "2015-10-29 09:26:32.714482"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:26:32.725494"], ["updated_at", "2015-10-29 09:26:32.725494"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.746073"], ["updated_at", "2015-10-29 09:26:32.746073"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (8.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:26:32.765942"], ["updated_at", "2015-10-29 09:26:32.765942"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.767317"], ["updated_at", "2015-10-29 09:26:32.767317"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 09:26:32.772736"], ["updated_at", "2015-10-29 09:26:32.772736"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:26:32.774984"], ["updated_at", "2015-10-29 09:26:32.774984"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.779821"], ["updated_at", "2015-10-29 09:26:32.779821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:26:32.805795"], ["updated_at", "2015-10-29 09:26:32.805795"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.807095"], ["updated_at", "2015-10-29 09:26:32.807095"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.1ms) SQL (0.2ms) 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: 7bit

user4

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:26:32.852580"], ["updated_at", "2015-10-29 09:26:32.852580"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.854631"], ["updated_at", "2015-10-29 09:26:32.854631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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: 7bit

user5

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:26:32.876973"], ["updated_at", "2015-10-29 09:26:32.876973"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.878518"], ["updated_at", "2015-10-29 09:26:32.878518"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user6

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:26:32.892318"], ["updated_at", "2015-10-29 09:26:32.892318"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.893558"], ["updated_at", "2015-10-29 09:26:32.893558"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user7

message body

 (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (9.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.2ms) 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)  (0.1ms) select sqlite_version(*)  (1.0ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (1.0ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (1.1ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 09:27:03.553553"], ["updated_at", "2015-10-29 09:27:03.553553"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:27:03.564518"], ["updated_at", "2015-10-29 09:27:03.564518"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.586566"], ["updated_at", "2015-10-29 09:27:03.586566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (8.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:27:03.606133"], ["updated_at", "2015-10-29 09:27:03.606133"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.607469"], ["updated_at", "2015-10-29 09:27:03.607469"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (8.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) 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)  (0.1ms) select sqlite_version(*)  (0.8ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.9ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.9ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.8ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 09:28:07.782165"], ["updated_at", "2015-10-29 09:28:07.782165"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:28:07.791867"], ["updated_at", "2015-10-29 09:28:07.791867"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.812270"], ["updated_at", "2015-10-29 09:28:07.812270"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (8.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:28:07.830693"], ["updated_at", "2015-10-29 09:28:07.830693"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.831970"], ["updated_at", "2015-10-29 09:28:07.831970"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.0ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) 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)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.9ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.8ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 09:28:35.011248"], ["updated_at", "2015-10-29 09:28:35.011248"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:28:35.022403"], ["updated_at", "2015-10-29 09:28:35.022403"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.043484"], ["updated_at", "2015-10-29 09:28:35.043484"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:28:35.054691"], ["updated_at", "2015-10-29 09:28:35.054691"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.055813"], ["updated_at", "2015-10-29 09:28:35.055813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (9.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) 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)  (0.1ms) select sqlite_version(*)  (0.8ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.8ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 09:28:56.203866"], ["updated_at", "2015-10-29 09:28:56.203866"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:28:56.214673"], ["updated_at", "2015-10-29 09:28:56.214673"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.237005"], ["updated_at", "2015-10-29 09:28:56.237005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (8.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:28:56.255244"], ["updated_at", "2015-10-29 09:28:56.255244"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.256546"], ["updated_at", "2015-10-29 09:28:56.256546"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (8.2ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) 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)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.8ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 09:29:56.710712"], ["updated_at", "2015-10-29 09:29:56.710712"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:29:56.722844"], ["updated_at", "2015-10-29 09:29:56.722844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.745689"], ["updated_at", "2015-10-29 09:29:56.745689"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (8.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:29:56.764048"], ["updated_at", "2015-10-29 09:29:56.764048"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.765362"], ["updated_at", "2015-10-29 09:29:56.765362"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (9.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) 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)  (0.1ms) select sqlite_version(*)  (0.8ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.9ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.9ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 09:30:21.117547"], ["updated_at", "2015-10-29 09:30:21.117547"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:30:21.129140"], ["updated_at", "2015-10-29 09:30:21.129140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.154691"], ["updated_at", "2015-10-29 09:30:21.154691"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (9.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:30:21.173465"], ["updated_at", "2015-10-29 09:30:21.173465"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.174833"], ["updated_at", "2015-10-29 09:30:21.174833"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.0ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 17.7ms  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (8.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.2ms) 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)  (0.1ms) select sqlite_version(*)  (0.8ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.8ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.9ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 09:30:50.038659"], ["updated_at", "2015-10-29 09:30:50.038659"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:30:50.052178"], ["updated_at", "2015-10-29 09:30:50.052178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.074992"], ["updated_at", "2015-10-29 09:30:50.074992"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (8.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:30:50.094557"], ["updated_at", "2015-10-29 09:30:50.094557"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.095959"], ["updated_at", "2015-10-29 09:30:50.095959"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (8.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.1ms) 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)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.9ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (1.0ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 09:33:09.984240"], ["updated_at", "2015-10-29 09:33:09.984240"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:33:09.998152"], ["updated_at", "2015-10-29 09:33:09.998152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.024237"], ["updated_at", "2015-10-29 09:33:10.024237"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (8.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:33:10.043605"], ["updated_at", "2015-10-29 09:33:10.043605"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.045237"], ["updated_at", "2015-10-29 09:33:10.045237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.0ms) SQL (0.2ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 20.4ms  (1.9ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.1ms) 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)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.9ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 09:33:59.755522"], ["updated_at", "2015-10-29 09:33:59.755522"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:33:59.767674"], ["updated_at", "2015-10-29 09:33:59.767674"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.790462"], ["updated_at", "2015-10-29 09:33:59.790462"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (9.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:33:59.810260"], ["updated_at", "2015-10-29 09:33:59.810260"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.811505"], ["updated_at", "2015-10-29 09:33:59.811505"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.0ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 17.9ms  (0.9ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (9.2ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) 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)  (0.1ms) select sqlite_version(*)  (0.8ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.8ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.9ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 09:34:32.169279"], ["updated_at", "2015-10-29 09:34:32.169279"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:34:32.182759"], ["updated_at", "2015-10-29 09:34:32.182759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.205896"], ["updated_at", "2015-10-29 09:34:32.205896"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (8.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:34:32.224924"], ["updated_at", "2015-10-29 09:34:32.224924"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.226327"], ["updated_at", "2015-10-29 09:34:32.226327"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.9ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 17.4ms  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (9.4ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.1ms) 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)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.8ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.8ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 09:35:23.388747"], ["updated_at", "2015-10-29 09:35:23.388747"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:35:23.400299"], ["updated_at", "2015-10-29 09:35:23.400299"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.423610"], ["updated_at", "2015-10-29 09:35:23.423610"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (8.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:35:23.441263"], ["updated_at", "2015-10-29 09:35:23.441263"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.442555"], ["updated_at", "2015-10-29 09:35:23.442555"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.9ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 17.9ms  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (8.6ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.1ms) 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)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.8ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.9ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 09:37:13.036530"], ["updated_at", "2015-10-29 09:37:13.036530"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:37:13.048848"], ["updated_at", "2015-10-29 09:37:13.048848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.071127"], ["updated_at", "2015-10-29 09:37:13.071127"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (8.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:37:13.089107"], ["updated_at", "2015-10-29 09:37:13.089107"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.090492"], ["updated_at", "2015-10-29 09:37:13.090492"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.0ms) SQL (0.1ms) 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: 7bit

user2

message body

 (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:37:13.125187"], ["updated_at", "2015-10-29 09:37:13.125187"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.127016"], ["updated_at", "2015-10-29 09:37:13.127016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.2ms) 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: 7bit

user3

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:37:13.149926"], ["updated_at", "2015-10-29 09:37:13.149926"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.151192"], ["updated_at", "2015-10-29 09:37:13.151192"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user4

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:37:13.164880"], ["updated_at", "2015-10-29 09:37:13.164880"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.166156"], ["updated_at", "2015-10-29 09:37:13.166156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.2ms) 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: 7bit

user5

message body

 (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (9.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) 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)  (0.1ms) select sqlite_version(*)  (1.4ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.2ms)  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'   (0.9ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (1.0ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 09:37:22.011372"], ["updated_at", "2015-10-29 09:37:22.011372"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:37:22.023253"], ["updated_at", "2015-10-29 09:37:22.023253"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.044282"], ["updated_at", "2015-10-29 09:37:22.044282"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (8.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:37:22.062739"], ["updated_at", "2015-10-29 09:37:22.062739"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.063948"], ["updated_at", "2015-10-29 09:37:22.063948"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.9ms) SQL (0.1ms) 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: 7bit

user2

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:37:22.098631"], ["updated_at", "2015-10-29 09:37:22.098631"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.100046"], ["updated_at", "2015-10-29 09:37:22.100046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user3

message body

 (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:37:22.119835"], ["updated_at", "2015-10-29 09:37:22.119835"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.121292"], ["updated_at", "2015-10-29 09:37:22.121292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user4

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:37:22.143460"], ["updated_at", "2015-10-29 09:37:22.143460"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.144788"], ["updated_at", "2015-10-29 09:37:22.144788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user5

message body

 (1.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (8.2ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) 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)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.8ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.8ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 09:38:52.824200"], ["updated_at", "2015-10-29 09:38:52.824200"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:38:52.838040"], ["updated_at", "2015-10-29 09:38:52.838040"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.868906"], ["updated_at", "2015-10-29 09:38:52.868906"]]  (0.1ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:38:52.910282"], ["updated_at", "2015-10-29 09:38:52.910282"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.911667"], ["updated_at", "2015-10-29 09:38:52.911667"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON NotifyWith::Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:38:52.943187"], ["updated_at", "2015-10-29 09:38:52.943187"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.945326"], ["updated_at", "2015-10-29 09:38:52.945326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.2ms) 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]] Message Load (0.3ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:38:52.975318"], ["updated_at", "2015-10-29 09:38:52.975318"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.976647"], ["updated_at", "2015-10-29 09:38:52.976647"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.0ms) 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.9ms) Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.3ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 09:38:52.990697"], ["updated_at", "2015-10-29 09:38:52.990697"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:38:52.992923"], ["updated_at", "2015-10-29 09:38:52.992923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.998176"], ["updated_at", "2015-10-29 09:38:52.998176"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.3ms) 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"]] SQL (0.2ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 4ms (ActiveRecord: 0.4ms) NotifyWith::Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-29 09:38:53.145768"], ["updated_at", "2015-10-29 09:38:53.145768"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:38:53.148120"], ["updated_at", "2015-10-29 09:38:53.148120"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.153538"], ["updated_at", "2015-10-29 09:38:53.153538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (8.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:38:53.172129"], ["updated_at", "2015-10-29 09:38:53.172129"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.173541"], ["updated_at", "2015-10-29 09:38:53.173541"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.7ms) SQL (0.1ms) 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: 7bit

user7

message body

 (1.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:38:53.209779"], ["updated_at", "2015-10-29 09:38:53.209779"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.211210"], ["updated_at", "2015-10-29 09:38:53.211210"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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: 7bit

user8

message body

 (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:38:53.231989"], ["updated_at", "2015-10-29 09:38:53.231989"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.233356"], ["updated_at", "2015-10-29 09:38:53.233356"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.0ms) 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: 7bit

user9

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:38:53.246134"], ["updated_at", "2015-10-29 09:38:53.246134"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.247331"], ["updated_at", "2015-10-29 09:38:53.247331"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user10

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-29 09:38:53.259091"], ["updated_at", "2015-10-29 09:38:53.259091"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-29 09:38:53.267459"], ["updated_at", "2015-10-29 09:38:53.267459"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.3ms) 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.271174"], ["updated_at", "2015-10-29 09:38:53.271174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-29 09:38:53.283400"], ["updated_at", "2015-10-29 09:38:53.283400"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-29 09:38:53.288429"], ["updated_at", "2015-10-29 09:38:53.288429"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.290445"], ["updated_at", "2015-10-29 09:38:53.290445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-29 09:38:53.299998"], ["updated_at", "2015-10-29 09:38:53.299998"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.3ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user15

message body

 (0.7ms) rollback transaction  (0.3ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-29 09:38:53.324729"], ["updated_at", "2015-10-29 09:38:53.324729"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [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] NotifyWith::Notification Load (0.1ms) 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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c34f373d-b313-4872-b9d5-d8cc3a1afe4e] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c34f373d-b313-4872-b9d5-d8cc3a1afe4e] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["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] SQL (0.1ms) 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: 7bit

user16

message body

[ActiveJob] [ActionMailer::DeliveryJob] [c34f373d-b313-4872-b9d5-d8cc3a1afe4e] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.31ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-29 09:38:53.363917"], ["updated_at", "2015-10-29 09:38:53.363917"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:38:53.382513"], ["updated_at", "2015-10-29 09:38:53.382513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:38:53.386602"], ["updated_at", "2015-10-29 09:38:53.386602"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.387846"], ["updated_at", "2015-10-29 09:38:53.387846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-29 09:38:53.395391"], ["updated_at", "2015-10-29 09:38:53.395391"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-29 09:38:53.400530"], ["updated_at", "2015-10-29 09:38:53.400530"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.402287"], ["updated_at", "2015-10-29 09:38:53.402287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:38:53.412566"], ["updated_at", "2015-10-29 09:38:53.412566"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:38:53.418811"], ["updated_at", "2015-10-29 09:38:53.418811"]]  (0.2ms) SELECT "users"."id" FROM "users" SQL (0.3ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.424126"], ["updated_at", "2015-10-29 09:38:53.424126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:38:53.431174"], ["updated_at", "2015-10-29 09:38:53.431174"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.433061"], ["updated_at", "2015-10-29 09:38:53.433061"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-29 09:38:53.438348"], ["updated_at", "2015-10-29 09:38:53.438348"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-29 09:38:53.443439"], ["updated_at", "2015-10-29 09:38:53.443439"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.445512"], ["updated_at", "2015-10-29 09:38:53.445512"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 2]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-29 09:38:53.462802"], ["updated_at", "2015-10-29 09:38:53.462802"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.5ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.474937"], ["updated_at", "2015-10-29 09:38:53.474937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:38:53.479568"], ["updated_at", "2015-10-29 09:38:53.479568"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:38:53.483671"], ["updated_at", "2015-10-29 09:38:53.483671"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.484887"], ["updated_at", "2015-10-29 09:38:53.484887"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:38:53.488924"], ["updated_at", "2015-10-29 09:38:53.488924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-29 09:38:53.494249"], ["updated_at", "2015-10-29 09:38:53.494249"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-29 09:38:53.499038"], ["updated_at", "2015-10-29 09:38:53.499038"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.500147"], ["updated_at", "2015-10-29 09:38:53.500147"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:38:53.506890"], ["updated_at", "2015-10-29 09:38:53.506890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:38:53.512595"], ["updated_at", "2015-10-29 09:38:53.512595"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.513834"], ["updated_at", "2015-10-29 09:38:53.513834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.4ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.4ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:38:53.526507"], ["updated_at", "2015-10-29 09:38:53.526507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) 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)  (0.1ms) select sqlite_version(*)  (1.0ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.2ms)  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'   (0.8ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (1.0ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 10:04:24.682166"], ["updated_at", "2015-10-29 10:04:24.682166"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:04:24.698958"], ["updated_at", "2015-10-29 10:04:24.698958"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.4ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.735924"], ["updated_at", "2015-10-29 10:04:24.735924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:04:24.758744"], ["updated_at", "2015-10-29 10:04:24.758744"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.760349"], ["updated_at", "2015-10-29 10:04:24.760349"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 10:04:24.767394"], ["updated_at", "2015-10-29 10:04:24.767394"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:04:24.769331"], ["updated_at", "2015-10-29 10:04:24.769331"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.774155"], ["updated_at", "2015-10-29 10:04:24.774155"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:04:24.784894"], ["updated_at", "2015-10-29 10:04:24.784894"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.786127"], ["updated_at", "2015-10-29 10:04:24.786127"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 10:04:24.796158"], ["updated_at", "2015-10-29 10:04:24.796158"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:04:24.798391"], ["updated_at", "2015-10-29 10:04:24.798391"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" SQL (0.4ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.812213"], ["updated_at", "2015-10-29 10:04:24.812213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:04:24.973553"], ["updated_at", "2015-10-29 10:04:24.973553"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.974865"], ["updated_at", "2015-10-29 10:04:24.974865"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 10:04:24.982209"], ["updated_at", "2015-10-29 10:04:24.982209"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:04:24.984220"], ["updated_at", "2015-10-29 10:04:24.984220"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.988897"], ["updated_at", "2015-10-29 10:04:24.988897"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.6ms) SQL (0.2ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

 (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 10:04:25.027243"], ["updated_at", "2015-10-29 10:04:25.027243"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:04:25.031855"], ["updated_at", "2015-10-29 10:04:25.031855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.3ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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:25.042833"], ["updated_at", "2015-10-29 10:04:25.042833"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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 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: 7bit

user8

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 10:04:25.051481"], ["updated_at", "2015-10-29 10:04:25.051481"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:04:25.053555"], ["updated_at", "2015-10-29 10:04:25.053555"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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:25.058670"], ["updated_at", "2015-10-29 10:04:25.058670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user9

message body

 (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 10:04:25.066231"], ["updated_at", "2015-10-29 10:04:25.066231"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:04:25.070366"], ["updated_at", "2015-10-29 10:04:25.070366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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:25.076914"], ["updated_at", "2015-10-29 10:04:25.076914"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.2ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user10

message body

 (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:04:25.091004"], ["updated_at", "2015-10-29 10:04:25.091004"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:04:25.095373"], ["updated_at", "2015-10-29 10:04:25.095373"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.096740"], ["updated_at", "2015-10-29 10:04:25.096740"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:04:25.101196"], ["updated_at", "2015-10-29 10:04:25.101196"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.102797"], ["updated_at", "2015-10-29 10:04:25.102797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:04:25.105775"], ["updated_at", "2015-10-29 10:04:25.105775"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:04:25.109235"], ["updated_at", "2015-10-29 10:04:25.109235"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.110342"], ["updated_at", "2015-10-29 10:04:25.110342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:04:25.114448"], ["updated_at", "2015-10-29 10:04:25.114448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.116815"], ["updated_at", "2015-10-29 10:04:25.116815"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:04:25.120244"], ["updated_at", "2015-10-29 10:04:25.120244"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:04:25.124034"], ["updated_at", "2015-10-29 10:04:25.124034"]]  (0.2ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.126908"], ["updated_at", "2015-10-29 10:04:25.126908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.131365"], ["updated_at", "2015-10-29 10:04:25.131365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user15

message body

 (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:04:25.138413"], ["updated_at", "2015-10-29 10:04:25.138413"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:04:25.142132"], ["updated_at", "2015-10-29 10:04:25.142132"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.143263"], ["updated_at", "2015-10-29 10:04:25.143263"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.148050"], ["updated_at", "2015-10-29 10:04:25.148050"]]  (0.1ms) 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] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [07ae6cd7-b068-46b6-83a9-771a23227b51] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [07ae6cd7-b068-46b6-83a9-771a23227b51] NotifyWith::NotificationType Load (0.1ms) 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] SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user16

message body

[ActiveJob] [ActionMailer::DeliveryJob] [07ae6cd7-b068-46b6-83a9-771a23227b51] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.33ms  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:04:25.182961"], ["updated_at", "2015-10-29 10:04:25.182961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:04:25.187915"], ["updated_at", "2015-10-29 10:04:25.187915"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.189531"], ["updated_at", "2015-10-29 10:04:25.189531"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-29 10:04:25.200521"], ["updated_at", "2015-10-29 10:04:25.200521"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:04:25.212753"], ["updated_at", "2015-10-29 10:04:25.212753"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:04:25.217121"], ["updated_at", "2015-10-29 10:04:25.217121"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.218454"], ["updated_at", "2015-10-29 10:04:25.218454"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:04:25.222660"], ["updated_at", "2015-10-29 10:04:25.222660"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.224546"], ["updated_at", "2015-10-29 10:04:25.224546"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-29 10:04:25.230840"], ["updated_at", "2015-10-29 10:04:25.230840"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-29 10:04:25.240633"], ["updated_at", "2015-10-29 10:04:25.240633"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.242513"], ["updated_at", "2015-10-29 10:04:25.242513"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:04:25.256478"], ["updated_at", "2015-10-29 10:04:25.256478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:04:25.261135"], ["updated_at", "2015-10-29 10:04:25.261135"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.262436"], ["updated_at", "2015-10-29 10:04:25.262436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:04:25.267928"], ["updated_at", "2015-10-29 10:04:25.267928"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.269940"], ["updated_at", "2015-10-29 10:04:25.269940"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 2]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:04:25.284508"], ["updated_at", "2015-10-29 10:04:25.284508"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:04:25.288612"], ["updated_at", "2015-10-29 10:04:25.288612"]]  (0.2ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.291284"], ["updated_at", "2015-10-29 10:04:25.291284"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-29 10:04:25.304302"], ["updated_at", "2015-10-29 10:04:25.304302"]]  (0.3ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-29 10:04:25.314626"], ["updated_at", "2015-10-29 10:04:25.314626"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.315881"], ["updated_at", "2015-10-29 10:04:25.315881"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:04:25.320992"], ["updated_at", "2015-10-29 10:04:25.320992"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:04:25.324811"], ["updated_at", "2015-10-29 10:04:25.324811"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.326032"], ["updated_at", "2015-10-29 10:04:25.326032"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:04:25.330008"], ["updated_at", "2015-10-29 10:04:25.330008"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-29 10:04:25.335479"], ["updated_at", "2015-10-29 10:04:25.335479"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-29 10:04:25.343652"], ["updated_at", "2015-10-29 10:04:25.343652"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.345459"], ["updated_at", "2015-10-29 10:04:25.345459"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) 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)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.8ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 10:13:12.665188"], ["updated_at", "2015-10-29 10:13:12.665188"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:13:12.681537"], ["updated_at", "2015-10-29 10:13:12.681537"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.3ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.715631"], ["updated_at", "2015-10-29 10:13:12.715631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:13:12.737337"], ["updated_at", "2015-10-29 10:13:12.737337"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.738631"], ["updated_at", "2015-10-29 10:13:12.738631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 10:13:12.746414"], ["updated_at", "2015-10-29 10:13:12.746414"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:13:12.748623"], ["updated_at", "2015-10-29 10:13:12.748623"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.753947"], ["updated_at", "2015-10-29 10:13:12.753947"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:13:12.764066"], ["updated_at", "2015-10-29 10:13:12.764066"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.765360"], ["updated_at", "2015-10-29 10:13:12.765360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 10:13:12.774920"], ["updated_at", "2015-10-29 10:13:12.774920"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:13:12.777453"], ["updated_at", "2015-10-29 10:13:12.777453"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.782526"], ["updated_at", "2015-10-29 10:13:12.782526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:13:12.945402"], ["updated_at", "2015-10-29 10:13:12.945402"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.946665"], ["updated_at", "2015-10-29 10:13:12.946665"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 10:13:12.953464"], ["updated_at", "2015-10-29 10:13:12.953464"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:13:12.955543"], ["updated_at", "2015-10-29 10:13:12.955543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.960397"], ["updated_at", "2015-10-29 10:13:12.960397"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.6ms) SQL (0.2ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 10:13:12.998419"], ["updated_at", "2015-10-29 10:13:12.998419"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:13:13.000887"], ["updated_at", "2015-10-29 10:13:13.000887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.3ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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:13.013000"], ["updated_at", "2015-10-29 10:13:13.013000"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user8

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 10:13:13.020542"], ["updated_at", "2015-10-29 10:13:13.020542"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:13:13.022622"], ["updated_at", "2015-10-29 10:13:13.022622"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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:13.027241"], ["updated_at", "2015-10-29 10:13:13.027241"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user9

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 10:13:13.034198"], ["updated_at", "2015-10-29 10:13:13.034198"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:13:13.036241"], ["updated_at", "2015-10-29 10:13:13.036241"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.3ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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:13.043204"], ["updated_at", "2015-10-29 10:13:13.043204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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.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: 7bit

user10

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:13:13.051378"], ["updated_at", "2015-10-29 10:13:13.051378"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:13:13.061584"], ["updated_at", "2015-10-29 10:13:13.061584"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.063912"], ["updated_at", "2015-10-29 10:13:13.063912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:13:13.068314"], ["updated_at", "2015-10-29 10:13:13.068314"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.069914"], ["updated_at", "2015-10-29 10:13:13.069914"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:13:13.073340"], ["updated_at", "2015-10-29 10:13:13.073340"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:13:13.077001"], ["updated_at", "2015-10-29 10:13:13.077001"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.078181"], ["updated_at", "2015-10-29 10:13:13.078181"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:13:13.081838"], ["updated_at", "2015-10-29 10:13:13.081838"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.084220"], ["updated_at", "2015-10-29 10:13:13.084220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:13:13.088623"], ["updated_at", "2015-10-29 10:13:13.088623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:13:13.095619"], ["updated_at", "2015-10-29 10:13:13.095619"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.097463"], ["updated_at", "2015-10-29 10:13:13.097463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.101929"], ["updated_at", "2015-10-29 10:13:13.101929"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user15

message body

 (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:13:13.109870"], ["updated_at", "2015-10-29 10:13:13.109870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:13:13.114254"], ["updated_at", "2015-10-29 10:13:13.114254"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.115555"], ["updated_at", "2015-10-29 10:13:13.115555"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.118842"], ["updated_at", "2015-10-29 10:13:13.118842"]]  (0.2ms) 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] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [864c665e-6ead-4cf5-9c5c-061f5f1185b1] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [864c665e-6ead-4cf5-9c5c-061f5f1185b1] NotifyWith::NotificationType Load (0.1ms) 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] SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user16

message body

[ActiveJob] [ActionMailer::DeliveryJob] [864c665e-6ead-4cf5-9c5c-061f5f1185b1] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.12ms  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:13:13.154117"], ["updated_at", "2015-10-29 10:13:13.154117"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:13:13.158029"], ["updated_at", "2015-10-29 10:13:13.158029"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.159249"], ["updated_at", "2015-10-29 10:13:13.159249"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-29 10:13:13.168861"], ["updated_at", "2015-10-29 10:13:13.168861"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:13:13.176742"], ["updated_at", "2015-10-29 10:13:13.176742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:13:13.180298"], ["updated_at", "2015-10-29 10:13:13.180298"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.181429"], ["updated_at", "2015-10-29 10:13:13.181429"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.3ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.2ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:13:13.191395"], ["updated_at", "2015-10-29 10:13:13.191395"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.196291"], ["updated_at", "2015-10-29 10:13:13.196291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-29 10:13:13.202767"], ["updated_at", "2015-10-29 10:13:13.202767"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-29 10:13:13.207842"], ["updated_at", "2015-10-29 10:13:13.207842"]]  (0.0ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.2ms) 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.209048"], ["updated_at", "2015-10-29 10:13:13.209048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:13:13.215603"], ["updated_at", "2015-10-29 10:13:13.215603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:13:13.224164"], ["updated_at", "2015-10-29 10:13:13.224164"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.226491"], ["updated_at", "2015-10-29 10:13:13.226491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:13:13.232522"], ["updated_at", "2015-10-29 10:13:13.232522"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.235837"], ["updated_at", "2015-10-29 10:13:13.235837"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 2]] NotifyWith::Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:13:13.256671"], ["updated_at", "2015-10-29 10:13:13.256671"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:13:13.260306"], ["updated_at", "2015-10-29 10:13:13.260306"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.261422"], ["updated_at", "2015-10-29 10:13:13.261422"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-29 10:13:13.269150"], ["updated_at", "2015-10-29 10:13:13.269150"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-29 10:13:13.274136"], ["updated_at", "2015-10-29 10:13:13.274136"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.275200"], ["updated_at", "2015-10-29 10:13:13.275200"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:13:13.280422"], ["updated_at", "2015-10-29 10:13:13.280422"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:13:13.283825"], ["updated_at", "2015-10-29 10:13:13.283825"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.284913"], ["updated_at", "2015-10-29 10:13:13.284913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:13:13.288765"], ["updated_at", "2015-10-29 10:13:13.288765"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-29 10:13:13.297098"], ["updated_at", "2015-10-29 10:13:13.297098"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-29 10:13:13.307303"], ["updated_at", "2015-10-29 10:13:13.307303"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.2ms) 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.310173"], ["updated_at", "2015-10-29 10:13:13.310173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.2ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) 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)  (0.1ms) select sqlite_version(*)  (0.8ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.8ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.0ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.1ms) 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)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.8ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.7ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.0ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.1ms) 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)  (0.1ms) select sqlite_version(*)  (0.8ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.8ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 10:19:20.684469"], ["updated_at", "2015-10-29 10:19:20.684469"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:20.698156"], ["updated_at", "2015-10-29 10:19:20.698156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.722481"], ["updated_at", "2015-10-29 10:19:20.722481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:20.731178"], ["updated_at", "2015-10-29 10:19:20.731178"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.732257"], ["updated_at", "2015-10-29 10:19:20.732257"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.4ms) SQL (0.2ms) 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: 7bit

user2

message body

 (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:20.775441"], ["updated_at", "2015-10-29 10:19:20.775441"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.776595"], ["updated_at", "2015-10-29 10:19:20.776595"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) SQL (0.4ms) 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: 7bit

user3

message body

 (1.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:20.797711"], ["updated_at", "2015-10-29 10:19:20.797711"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.799012"], ["updated_at", "2015-10-29 10:19:20.799012"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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: 7bit

user4

message body

 (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:20.811787"], ["updated_at", "2015-10-29 10:19:20.811787"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.812895"], ["updated_at", "2015-10-29 10:19:20.812895"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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: 7bit

user5

message body

 (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-29 10:19:20.823771"], ["updated_at", "2015-10-29 10:19:20.823771"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 10:19:20.831973"], ["updated_at", "2015-10-29 10:19:20.831973"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.4ms) 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.835191"], ["updated_at", "2015-10-29 10:19:20.835191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 10:19:20.846982"], ["updated_at", "2015-10-29 10:19:20.846982"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 10:19:20.851891"], ["updated_at", "2015-10-29 10:19:20.851891"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.853114"], ["updated_at", "2015-10-29 10:19:20.853114"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 10:19:20.861350"], ["updated_at", "2015-10-29 10:19:20.861350"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user10

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-29 10:19:20.881676"], ["updated_at", "2015-10-29 10:19:20.881676"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [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] NotifyWith::Notification Load (0.1ms) 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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [d04c5bc9-6fc9-4527-879e-3c6e2418437f] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [d04c5bc9-6fc9-4527-879e-3c6e2418437f] NotifyWith::NotificationType Load (0.3ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["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] SQL (0.1ms) 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: 7bit

user11

message body

[ActiveJob] [ActionMailer::DeliveryJob] [d04c5bc9-6fc9-4527-879e-3c6e2418437f] Performed ActionMailer::DeliveryJob from Inline(mailers) in 9.38ms  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-29 10:19:20.925924"], ["updated_at", "2015-10-29 10:19:20.925924"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.5ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:20.942131"], ["updated_at", "2015-10-29 10:19:20.942131"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:20.945704"], ["updated_at", "2015-10-29 10:19:20.945704"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.946858"], ["updated_at", "2015-10-29 10:19:20.946858"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-29 10:19:20.952204"], ["updated_at", "2015-10-29 10:19:20.952204"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-29 10:19:20.956744"], ["updated_at", "2015-10-29 10:19:20.956744"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.957827"], ["updated_at", "2015-10-29 10:19:20.957827"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:20.964550"], ["updated_at", "2015-10-29 10:19:20.964550"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:20.970239"], ["updated_at", "2015-10-29 10:19:20.970239"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.972185"], ["updated_at", "2015-10-29 10:19:20.972185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:20.977453"], ["updated_at", "2015-10-29 10:19:20.977453"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.979118"], ["updated_at", "2015-10-29 10:19:20.979118"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-29 10:19:20.988871"], ["updated_at", "2015-10-29 10:19:20.988871"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-29 10:19:20.995558"], ["updated_at", "2015-10-29 10:19:20.995558"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.996710"], ["updated_at", "2015-10-29 10:19:20.996710"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 2]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-29 10:19:21.017620"], ["updated_at", "2015-10-29 10:19:21.017620"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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:21.027320"], ["updated_at", "2015-10-29 10:19:21.027320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:21.032550"], ["updated_at", "2015-10-29 10:19:21.032550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:21.041260"], ["updated_at", "2015-10-29 10:19:21.041260"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.042664"], ["updated_at", "2015-10-29 10:19:21.042664"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:21.046411"], ["updated_at", "2015-10-29 10:19:21.046411"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-29 10:19:21.051592"], ["updated_at", "2015-10-29 10:19:21.051592"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-29 10:19:21.056205"], ["updated_at", "2015-10-29 10:19:21.056205"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.057286"], ["updated_at", "2015-10-29 10:19:21.057286"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:21.062565"], ["updated_at", "2015-10-29 10:19:21.062565"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:21.066190"], ["updated_at", "2015-10-29 10:19:21.066190"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.067440"], ["updated_at", "2015-10-29 10:19:21.067440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:21.074484"], ["updated_at", "2015-10-29 10:19:21.074484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) 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)  (0.1ms) select sqlite_version(*)  (0.8ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.8ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.7ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.8ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 10:19:36.071807"], ["updated_at", "2015-10-29 10:19:36.071807"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:36.088451"], ["updated_at", "2015-10-29 10:19:36.088451"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.113937"], ["updated_at", "2015-10-29 10:19:36.113937"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:36.123767"], ["updated_at", "2015-10-29 10:19:36.123767"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.124987"], ["updated_at", "2015-10-29 10:19:36.124987"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (2.1ms) SQL (0.2ms) 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: 7bit

user2

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.3ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:36.182503"], ["updated_at", "2015-10-29 10:19:36.182503"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.5ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.186368"], ["updated_at", "2015-10-29 10:19:36.186368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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: 7bit

user3

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:36.202651"], ["updated_at", "2015-10-29 10:19:36.202651"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.203875"], ["updated_at", "2015-10-29 10:19:36.203875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user4

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:36.219918"], ["updated_at", "2015-10-29 10:19:36.219918"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.221164"], ["updated_at", "2015-10-29 10:19:36.221164"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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: 7bit

user5

message body

 (1.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-29 10:19:36.238110"], ["updated_at", "2015-10-29 10:19:36.238110"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 10:19:36.248023"], ["updated_at", "2015-10-29 10:19:36.248023"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.3ms) 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.249884"], ["updated_at", "2015-10-29 10:19:36.249884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 10:19:36.267054"], ["updated_at", "2015-10-29 10:19:36.267054"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 10:19:36.275309"], ["updated_at", "2015-10-29 10:19:36.275309"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.276808"], ["updated_at", "2015-10-29 10:19:36.276808"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 10:19:36.291596"], ["updated_at", "2015-10-29 10:19:36.291596"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user10

message body

 (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-29 10:19:36.308320"], ["updated_at", "2015-10-29 10:19:36.308320"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [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] NotifyWith::Notification Load (0.1ms) 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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [6a83aec2-81f7-4da2-99ea-a825dc25edb0] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [6a83aec2-81f7-4da2-99ea-a825dc25edb0] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["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] SQL (0.1ms) 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: 7bit

user11

message body

[ActiveJob] [ActionMailer::DeliveryJob] [6a83aec2-81f7-4da2-99ea-a825dc25edb0] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.85ms  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-29 10:19:36.345159"], ["updated_at", "2015-10-29 10:19:36.345159"]]  (0.3ms) SELECT "notification_types"."id" FROM "notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:36.363408"], ["updated_at", "2015-10-29 10:19:36.363408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:36.369093"], ["updated_at", "2015-10-29 10:19:36.369093"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.371057"], ["updated_at", "2015-10-29 10:19:36.371057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-29 10:19:36.381282"], ["updated_at", "2015-10-29 10:19:36.381282"]]  (0.4ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-29 10:19:36.391914"], ["updated_at", "2015-10-29 10:19:36.391914"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.393638"], ["updated_at", "2015-10-29 10:19:36.393638"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:36.404201"], ["updated_at", "2015-10-29 10:19:36.404201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:36.412382"], ["updated_at", "2015-10-29 10:19:36.412382"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.413597"], ["updated_at", "2015-10-29 10:19:36.413597"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:36.417188"], ["updated_at", "2015-10-29 10:19:36.417188"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.418729"], ["updated_at", "2015-10-29 10:19:36.418729"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-29 10:19:36.423310"], ["updated_at", "2015-10-29 10:19:36.423310"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-29 10:19:36.428608"], ["updated_at", "2015-10-29 10:19:36.428608"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.430060"], ["updated_at", "2015-10-29 10:19:36.430060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 2]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-29 10:19:36.460237"], ["updated_at", "2015-10-29 10:19:36.460237"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.467701"], ["updated_at", "2015-10-29 10:19:36.467701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:36.471082"], ["updated_at", "2015-10-29 10:19:36.471082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:36.475494"], ["updated_at", "2015-10-29 10:19:36.475494"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.477176"], ["updated_at", "2015-10-29 10:19:36.477176"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:36.481382"], ["updated_at", "2015-10-29 10:19:36.481382"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-29 10:19:36.486542"], ["updated_at", "2015-10-29 10:19:36.486542"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-29 10:19:36.494490"], ["updated_at", "2015-10-29 10:19:36.494490"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.496317"], ["updated_at", "2015-10-29 10:19:36.496317"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.1ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:36.505848"], ["updated_at", "2015-10-29 10:19:36.505848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:36.514014"], ["updated_at", "2015-10-29 10:19:36.514014"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.515186"], ["updated_at", "2015-10-29 10:19:36.515186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:36.518803"], ["updated_at", "2015-10-29 10:19:36.518803"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.0ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) 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)  (0.1ms) select sqlite_version(*)  (1.0ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.9ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.8ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 10:20:34.692531"], ["updated_at", "2015-10-29 10:20:34.692531"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:20:34.707159"], ["updated_at", "2015-10-29 10:20:34.707159"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.733793"], ["updated_at", "2015-10-29 10:20:34.733793"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:20:34.748347"], ["updated_at", "2015-10-29 10:20:34.748347"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.4ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.750240"], ["updated_at", "2015-10-29 10:20:34.750240"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.6ms) SQL (0.2ms) 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: 7bit

user2

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.3ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:20:34.806505"], ["updated_at", "2015-10-29 10:20:34.806505"]]  (0.4ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.810617"], ["updated_at", "2015-10-29 10:20:34.810617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user3

message body

 (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.6ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:20:34.826675"], ["updated_at", "2015-10-29 10:20:34.826675"]]  (0.2ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.831471"], ["updated_at", "2015-10-29 10:20:34.831471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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: 7bit

user4

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:20:34.850149"], ["updated_at", "2015-10-29 10:20:34.850149"]]  (0.3ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.855806"], ["updated_at", "2015-10-29 10:20:34.855806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user5

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-29 10:20:34.869734"], ["updated_at", "2015-10-29 10:20:34.869734"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.3ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 10:20:34.880858"], ["updated_at", "2015-10-29 10:20:34.880858"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.4ms) 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:34.885616"], ["updated_at", "2015-10-29 10:20:34.885616"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (2.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 10:20:34.899910"], ["updated_at", "2015-10-29 10:20:34.899910"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 10:20:34.904770"], ["updated_at", "2015-10-29 10:20:34.904770"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.2ms) 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:34.906361"], ["updated_at", "2015-10-29 10:20:34.906361"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 10:20:34.914785"], ["updated_at", "2015-10-29 10:20:34.914785"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) SQL (0.1ms) 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: 7bit

user10

message body

 (1.0ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-29 10:20:34.939176"], ["updated_at", "2015-10-29 10:20:34.939176"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [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] NotifyWith::Notification Load (0.1ms) 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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [9717ca33-ca1d-4204-adbc-e5bfd0fe0e9c] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [9717ca33-ca1d-4204-adbc-e5bfd0fe0e9c] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["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] SQL (0.1ms) 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: 7bit

user11

message body

[ActiveJob] [ActionMailer::DeliveryJob] [9717ca33-ca1d-4204-adbc-e5bfd0fe0e9c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 9.08ms  (3.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-29 10:20:34.980375"], ["updated_at", "2015-10-29 10:20:34.980375"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" SQL (0.4ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:20:34.997901"], ["updated_at", "2015-10-29 10:20:34.997901"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:20:35.002113"], ["updated_at", "2015-10-29 10:20:35.002113"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.003690"], ["updated_at", "2015-10-29 10:20:35.003690"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-29 10:20:35.009996"], ["updated_at", "2015-10-29 10:20:35.009996"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-29 10:20:35.015564"], ["updated_at", "2015-10-29 10:20:35.015564"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.017224"], ["updated_at", "2015-10-29 10:20:35.017224"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:20:35.025677"], ["updated_at", "2015-10-29 10:20:35.025677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:20:35.031865"], ["updated_at", "2015-10-29 10:20:35.031865"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.033877"], ["updated_at", "2015-10-29 10:20:35.033877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:20:35.038720"], ["updated_at", "2015-10-29 10:20:35.038720"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.040664"], ["updated_at", "2015-10-29 10:20:35.040664"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-29 10:20:35.051618"], ["updated_at", "2015-10-29 10:20:35.051618"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-29 10:20:35.058756"], ["updated_at", "2015-10-29 10:20:35.058756"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.060035"], ["updated_at", "2015-10-29 10:20:35.060035"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 2]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-29 10:20:35.080407"], ["updated_at", "2015-10-29 10:20:35.080407"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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:35.088297"], ["updated_at", "2015-10-29 10:20:35.088297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:20:35.093202"], ["updated_at", "2015-10-29 10:20:35.093202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:20:35.103362"], ["updated_at", "2015-10-29 10:20:35.103362"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.104930"], ["updated_at", "2015-10-29 10:20:35.104930"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:20:35.109003"], ["updated_at", "2015-10-29 10:20:35.109003"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-29 10:20:35.114084"], ["updated_at", "2015-10-29 10:20:35.114084"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-29 10:20:35.120017"], ["updated_at", "2015-10-29 10:20:35.120017"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.121482"], ["updated_at", "2015-10-29 10:20:35.121482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:20:35.128036"], ["updated_at", "2015-10-29 10:20:35.128036"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:20:35.133528"], ["updated_at", "2015-10-29 10:20:35.133528"]]  (0.4ms) SELECT "users"."id" FROM "users" SQL (0.4ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.139910"], ["updated_at", "2015-10-29 10:20:35.139910"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:20:35.151182"], ["updated_at", "2015-10-29 10:20:35.151182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) 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)  (0.1ms) select sqlite_version(*)  (0.8ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.8ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 10:21:12.312069"], ["updated_at", "2015-10-29 10:21:12.312069"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:12.328252"], ["updated_at", "2015-10-29 10:21:12.328252"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.3ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.359762"], ["updated_at", "2015-10-29 10:21:12.359762"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:12.377624"], ["updated_at", "2015-10-29 10:21:12.377624"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.378881"], ["updated_at", "2015-10-29 10:21:12.378881"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 10:21:12.384703"], ["updated_at", "2015-10-29 10:21:12.384703"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:12.386768"], ["updated_at", "2015-10-29 10:21:12.386768"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.391926"], ["updated_at", "2015-10-29 10:21:12.391926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:12.400756"], ["updated_at", "2015-10-29 10:21:12.400756"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.402054"], ["updated_at", "2015-10-29 10:21:12.402054"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 10:21:12.409419"], ["updated_at", "2015-10-29 10:21:12.409419"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:12.411545"], ["updated_at", "2015-10-29 10:21:12.411545"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.417980"], ["updated_at", "2015-10-29 10:21:12.417980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:12.572604"], ["updated_at", "2015-10-29 10:21:12.572604"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.573860"], ["updated_at", "2015-10-29 10:21:12.573860"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 10:21:12.581047"], ["updated_at", "2015-10-29 10:21:12.581047"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:12.583169"], ["updated_at", "2015-10-29 10:21:12.583169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.588086"], ["updated_at", "2015-10-29 10:21:12.588086"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (2.3ms) SQL (0.2ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

 (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 10:21:12.626676"], ["updated_at", "2015-10-29 10:21:12.626676"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:12.631685"], ["updated_at", "2015-10-29 10:21:12.631685"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.641127"], ["updated_at", "2015-10-29 10:21:12.641127"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user8

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 10:21:12.648401"], ["updated_at", "2015-10-29 10:21:12.648401"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:12.650236"], ["updated_at", "2015-10-29 10:21:12.650236"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.654548"], ["updated_at", "2015-10-29 10:21:12.654548"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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.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: 7bit

user9

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 10:21:12.661385"], ["updated_at", "2015-10-29 10:21:12.661385"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:12.663408"], ["updated_at", "2015-10-29 10:21:12.663408"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.4ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.670668"], ["updated_at", "2015-10-29 10:21:12.670668"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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.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: 7bit

user10

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:12.677654"], ["updated_at", "2015-10-29 10:21:12.677654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:12.688320"], ["updated_at", "2015-10-29 10:21:12.688320"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.690305"], ["updated_at", "2015-10-29 10:21:12.690305"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:12.694226"], ["updated_at", "2015-10-29 10:21:12.694226"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.695817"], ["updated_at", "2015-10-29 10:21:12.695817"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:12.699382"], ["updated_at", "2015-10-29 10:21:12.699382"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:12.703165"], ["updated_at", "2015-10-29 10:21:12.703165"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.704363"], ["updated_at", "2015-10-29 10:21:12.704363"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:12.708181"], ["updated_at", "2015-10-29 10:21:12.708181"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.710218"], ["updated_at", "2015-10-29 10:21:12.710218"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:12.713581"], ["updated_at", "2015-10-29 10:21:12.713581"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:12.720183"], ["updated_at", "2015-10-29 10:21:12.720183"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.722121"], ["updated_at", "2015-10-29 10:21:12.722121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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.727205"], ["updated_at", "2015-10-29 10:21:12.727205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.2ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user15

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:12.740660"], ["updated_at", "2015-10-29 10:21:12.740660"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:12.744291"], ["updated_at", "2015-10-29 10:21:12.744291"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.745447"], ["updated_at", "2015-10-29 10:21:12.745447"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.747154"], ["updated_at", "2015-10-29 10:21:12.747154"]]  (0.0ms) 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] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [d7c90d9d-298d-4cb3-9faf-b9414ccfb1df] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [d7c90d9d-298d-4cb3-9faf-b9414ccfb1df] NotifyWith::NotificationType Load (0.1ms) 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] SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user16

message body

[ActiveJob] [ActionMailer::DeliveryJob] [d7c90d9d-298d-4cb3-9faf-b9414ccfb1df] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.13ms  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:12.776110"], ["updated_at", "2015-10-29 10:21:12.776110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:12.781191"], ["updated_at", "2015-10-29 10:21:12.781191"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.782859"], ["updated_at", "2015-10-29 10:21:12.782859"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-29 10:21:12.790369"], ["updated_at", "2015-10-29 10:21:12.790369"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:12.802713"], ["updated_at", "2015-10-29 10:21:12.802713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:12.808173"], ["updated_at", "2015-10-29 10:21:12.808173"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.809288"], ["updated_at", "2015-10-29 10:21:12.809288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:12.813459"], ["updated_at", "2015-10-29 10:21:12.813459"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.815026"], ["updated_at", "2015-10-29 10:21:12.815026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-29 10:21:12.821279"], ["updated_at", "2015-10-29 10:21:12.821279"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-29 10:21:12.826258"], ["updated_at", "2015-10-29 10:21:12.826258"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.2ms) 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.827368"], ["updated_at", "2015-10-29 10:21:12.827368"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:12.835387"], ["updated_at", "2015-10-29 10:21:12.835387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:12.839779"], ["updated_at", "2015-10-29 10:21:12.839779"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.841421"], ["updated_at", "2015-10-29 10:21:12.841421"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.3ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:12.849983"], ["updated_at", "2015-10-29 10:21:12.849983"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.853418"], ["updated_at", "2015-10-29 10:21:12.853418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 2]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:12.869504"], ["updated_at", "2015-10-29 10:21:12.869504"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:12.873471"], ["updated_at", "2015-10-29 10:21:12.873471"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.874677"], ["updated_at", "2015-10-29 10:21:12.874677"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-29 10:21:12.884375"], ["updated_at", "2015-10-29 10:21:12.884375"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-29 10:21:12.891890"], ["updated_at", "2015-10-29 10:21:12.891890"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.893149"], ["updated_at", "2015-10-29 10:21:12.893149"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:12.903795"], ["updated_at", "2015-10-29 10:21:12.903795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:12.908467"], ["updated_at", "2015-10-29 10:21:12.908467"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.909576"], ["updated_at", "2015-10-29 10:21:12.909576"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:12.913641"], ["updated_at", "2015-10-29 10:21:12.913641"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-29 10:21:12.918813"], ["updated_at", "2015-10-29 10:21:12.918813"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-29 10:21:12.923523"], ["updated_at", "2015-10-29 10:21:12.923523"]]  (0.0ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.924615"], ["updated_at", "2015-10-29 10:21:12.924615"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.0ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) 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)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.8ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 10:21:30.927299"], ["updated_at", "2015-10-29 10:21:30.927299"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:30.942810"], ["updated_at", "2015-10-29 10:21:30.942810"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.3ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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:30.979944"], ["updated_at", "2015-10-29 10:21:30.979944"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:31.000802"], ["updated_at", "2015-10-29 10:21:31.000802"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.002019"], ["updated_at", "2015-10-29 10:21:31.002019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 10:21:31.009078"], ["updated_at", "2015-10-29 10:21:31.009078"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:31.010999"], ["updated_at", "2015-10-29 10:21:31.010999"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.015737"], ["updated_at", "2015-10-29 10:21:31.015737"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:31.025178"], ["updated_at", "2015-10-29 10:21:31.025178"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.026342"], ["updated_at", "2015-10-29 10:21:31.026342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 10:21:31.034664"], ["updated_at", "2015-10-29 10:21:31.034664"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:31.037106"], ["updated_at", "2015-10-29 10:21:31.037106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.043255"], ["updated_at", "2015-10-29 10:21:31.043255"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:31.204925"], ["updated_at", "2015-10-29 10:21:31.204925"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.206104"], ["updated_at", "2015-10-29 10:21:31.206104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 10:21:31.212724"], ["updated_at", "2015-10-29 10:21:31.212724"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:31.214820"], ["updated_at", "2015-10-29 10:21:31.214820"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.219516"], ["updated_at", "2015-10-29 10:21:31.219516"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.6ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 10:21:31.256856"], ["updated_at", "2015-10-29 10:21:31.256856"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:31.258750"], ["updated_at", "2015-10-29 10:21:31.258750"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.263310"], ["updated_at", "2015-10-29 10:21:31.263310"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.2ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user8

message body

 (1.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 10:21:31.277190"], ["updated_at", "2015-10-29 10:21:31.277190"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:31.279191"], ["updated_at", "2015-10-29 10:21:31.279191"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.283879"], ["updated_at", "2015-10-29 10:21:31.283879"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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.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: 7bit

user9

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 10:21:31.290964"], ["updated_at", "2015-10-29 10:21:31.290964"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:31.292892"], ["updated_at", "2015-10-29 10:21:31.292892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.297463"], ["updated_at", "2015-10-29 10:21:31.297463"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user10

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:31.304837"], ["updated_at", "2015-10-29 10:21:31.304837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:31.310326"], ["updated_at", "2015-10-29 10:21:31.310326"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.312279"], ["updated_at", "2015-10-29 10:21:31.312279"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:31.320095"], ["updated_at", "2015-10-29 10:21:31.320095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.324150"], ["updated_at", "2015-10-29 10:21:31.324150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:31.328678"], ["updated_at", "2015-10-29 10:21:31.328678"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:31.332209"], ["updated_at", "2015-10-29 10:21:31.332209"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.333319"], ["updated_at", "2015-10-29 10:21:31.333319"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:31.336954"], ["updated_at", "2015-10-29 10:21:31.336954"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.339101"], ["updated_at", "2015-10-29 10:21:31.339101"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:31.342363"], ["updated_at", "2015-10-29 10:21:31.342363"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:31.345873"], ["updated_at", "2015-10-29 10:21:31.345873"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.347289"], ["updated_at", "2015-10-29 10:21:31.347289"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.352027"], ["updated_at", "2015-10-29 10:21:31.352027"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user15

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:31.359249"], ["updated_at", "2015-10-29 10:21:31.359249"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:31.364618"], ["updated_at", "2015-10-29 10:21:31.364618"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.366305"], ["updated_at", "2015-10-29 10:21:31.366305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.368926"], ["updated_at", "2015-10-29 10:21:31.368926"]]  (0.1ms) 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] NotifyWith::Notification Load (0.3ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e6aae318-3f3c-456d-8340-ccc368dc28ca] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e6aae318-3f3c-456d-8340-ccc368dc28ca] NotifyWith::NotificationType Load (0.1ms) 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] SQL (0.0ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user16

message body

[ActiveJob] [ActionMailer::DeliveryJob] [e6aae318-3f3c-456d-8340-ccc368dc28ca] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.99ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:31.402263"], ["updated_at", "2015-10-29 10:21:31.402263"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:31.405734"], ["updated_at", "2015-10-29 10:21:31.405734"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.406848"], ["updated_at", "2015-10-29 10:21:31.406848"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-29 10:21:31.413695"], ["updated_at", "2015-10-29 10:21:31.413695"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:31.421057"], ["updated_at", "2015-10-29 10:21:31.421057"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:31.424773"], ["updated_at", "2015-10-29 10:21:31.424773"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.425918"], ["updated_at", "2015-10-29 10:21:31.425918"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:31.429657"], ["updated_at", "2015-10-29 10:21:31.429657"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.431298"], ["updated_at", "2015-10-29 10:21:31.431298"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-29 10:21:31.437345"], ["updated_at", "2015-10-29 10:21:31.437345"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-29 10:21:31.445357"], ["updated_at", "2015-10-29 10:21:31.445357"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.2ms) 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.447020"], ["updated_at", "2015-10-29 10:21:31.447020"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:31.460282"], ["updated_at", "2015-10-29 10:21:31.460282"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:31.464361"], ["updated_at", "2015-10-29 10:21:31.464361"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.465506"], ["updated_at", "2015-10-29 10:21:31.465506"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:31.469751"], ["updated_at", "2015-10-29 10:21:31.469751"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.471386"], ["updated_at", "2015-10-29 10:21:31.471386"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 2]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:31.485242"], ["updated_at", "2015-10-29 10:21:31.485242"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:31.488715"], ["updated_at", "2015-10-29 10:21:31.488715"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.489893"], ["updated_at", "2015-10-29 10:21:31.489893"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-29 10:21:31.500442"], ["updated_at", "2015-10-29 10:21:31.500442"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-29 10:21:31.510437"], ["updated_at", "2015-10-29 10:21:31.510437"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.2ms) 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.513639"], ["updated_at", "2015-10-29 10:21:31.513639"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:31.519548"], ["updated_at", "2015-10-29 10:21:31.519548"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:31.522946"], ["updated_at", "2015-10-29 10:21:31.522946"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.524046"], ["updated_at", "2015-10-29 10:21:31.524046"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:31.527657"], ["updated_at", "2015-10-29 10:21:31.527657"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-29 10:21:31.533102"], ["updated_at", "2015-10-29 10:21:31.533102"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-29 10:21:31.537512"], ["updated_at", "2015-10-29 10:21:31.537512"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.538567"], ["updated_at", "2015-10-29 10:21:31.538567"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.9ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) 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)  (0.1ms) select sqlite_version(*)  (0.7ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.9ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 10:22:56.215442"], ["updated_at", "2015-10-29 10:22:56.215442"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:22:56.237166"], ["updated_at", "2015-10-29 10:22:56.237166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.3ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.274560"], ["updated_at", "2015-10-29 10:22:56.274560"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:22:56.295233"], ["updated_at", "2015-10-29 10:22:56.295233"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.296442"], ["updated_at", "2015-10-29 10:22:56.296442"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 10:22:56.303617"], ["updated_at", "2015-10-29 10:22:56.303617"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:22:56.305558"], ["updated_at", "2015-10-29 10:22:56.305558"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.310373"], ["updated_at", "2015-10-29 10:22:56.310373"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:22:56.320261"], ["updated_at", "2015-10-29 10:22:56.320261"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.321493"], ["updated_at", "2015-10-29 10:22:56.321493"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 10:22:56.329633"], ["updated_at", "2015-10-29 10:22:56.329633"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:22:56.332415"], ["updated_at", "2015-10-29 10:22:56.332415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.3ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.344241"], ["updated_at", "2015-10-29 10:22:56.344241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:22:56.492644"], ["updated_at", "2015-10-29 10:22:56.492644"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.493856"], ["updated_at", "2015-10-29 10:22:56.493856"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 10:22:56.501019"], ["updated_at", "2015-10-29 10:22:56.501019"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:22:56.502996"], ["updated_at", "2015-10-29 10:22:56.502996"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.507824"], ["updated_at", "2015-10-29 10:22:56.507824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.2ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 10:22:56.542824"], ["updated_at", "2015-10-29 10:22:56.542824"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:22:56.544980"], ["updated_at", "2015-10-29 10:22:56.544980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" SQL (0.3ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.556767"], ["updated_at", "2015-10-29 10:22:56.556767"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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 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: 7bit

user8

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 10:22:56.565691"], ["updated_at", "2015-10-29 10:22:56.565691"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:22:56.567578"], ["updated_at", "2015-10-29 10:22:56.567578"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.571999"], ["updated_at", "2015-10-29 10:22:56.571999"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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.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: 7bit

user9

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 10:22:56.578956"], ["updated_at", "2015-10-29 10:22:56.578956"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:22:56.580930"], ["updated_at", "2015-10-29 10:22:56.580930"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.585443"], ["updated_at", "2015-10-29 10:22:56.585443"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user10

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:22:56.592094"], ["updated_at", "2015-10-29 10:22:56.592094"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:22:56.596879"], ["updated_at", "2015-10-29 10:22:56.596879"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.598400"], ["updated_at", "2015-10-29 10:22:56.598400"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:22:56.602824"], ["updated_at", "2015-10-29 10:22:56.602824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.607580"], ["updated_at", "2015-10-29 10:22:56.607580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:22:56.615863"], ["updated_at", "2015-10-29 10:22:56.615863"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:22:56.619363"], ["updated_at", "2015-10-29 10:22:56.619363"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.620484"], ["updated_at", "2015-10-29 10:22:56.620484"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:22:56.624153"], ["updated_at", "2015-10-29 10:22:56.624153"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.626146"], ["updated_at", "2015-10-29 10:22:56.626146"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:22:56.629409"], ["updated_at", "2015-10-29 10:22:56.629409"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:22:56.632928"], ["updated_at", "2015-10-29 10:22:56.632928"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.634039"], ["updated_at", "2015-10-29 10:22:56.634039"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.638764"], ["updated_at", "2015-10-29 10:22:56.638764"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user15

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:22:56.646157"], ["updated_at", "2015-10-29 10:22:56.646157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:22:56.651134"], ["updated_at", "2015-10-29 10:22:56.651134"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.652768"], ["updated_at", "2015-10-29 10:22:56.652768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.655484"], ["updated_at", "2015-10-29 10:22:56.655484"]]  (0.0ms) 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] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [36913de8-ee7a-48a5-a135-70e6981cab9c] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [36913de8-ee7a-48a5-a135-70e6981cab9c] NotifyWith::NotificationType Load (0.1ms) 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] SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user16

message body

[ActiveJob] [ActionMailer::DeliveryJob] [36913de8-ee7a-48a5-a135-70e6981cab9c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.19ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:22:56.687373"], ["updated_at", "2015-10-29 10:22:56.687373"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:22:56.691089"], ["updated_at", "2015-10-29 10:22:56.691089"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.692240"], ["updated_at", "2015-10-29 10:22:56.692240"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-29 10:22:56.699732"], ["updated_at", "2015-10-29 10:22:56.699732"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:22:56.708179"], ["updated_at", "2015-10-29 10:22:56.708179"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:22:56.712013"], ["updated_at", "2015-10-29 10:22:56.712013"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.3ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.713372"], ["updated_at", "2015-10-29 10:22:56.713372"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:22:56.725310"], ["updated_at", "2015-10-29 10:22:56.725310"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.727544"], ["updated_at", "2015-10-29 10:22:56.727544"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-29 10:22:56.733079"], ["updated_at", "2015-10-29 10:22:56.733079"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-29 10:22:56.737711"], ["updated_at", "2015-10-29 10:22:56.737711"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.738827"], ["updated_at", "2015-10-29 10:22:56.738827"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:22:56.745561"], ["updated_at", "2015-10-29 10:22:56.745561"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:22:56.749291"], ["updated_at", "2015-10-29 10:22:56.749291"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.750543"], ["updated_at", "2015-10-29 10:22:56.750543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:22:56.756509"], ["updated_at", "2015-10-29 10:22:56.756509"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.758697"], ["updated_at", "2015-10-29 10:22:56.758697"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 2]] NotifyWith::Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:22:56.779347"], ["updated_at", "2015-10-29 10:22:56.779347"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:22:56.783059"], ["updated_at", "2015-10-29 10:22:56.783059"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.784195"], ["updated_at", "2015-10-29 10:22:56.784195"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-29 10:22:56.791726"], ["updated_at", "2015-10-29 10:22:56.791726"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-29 10:22:56.796199"], ["updated_at", "2015-10-29 10:22:56.796199"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.797256"], ["updated_at", "2015-10-29 10:22:56.797256"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:22:56.802125"], ["updated_at", "2015-10-29 10:22:56.802125"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:22:56.805545"], ["updated_at", "2015-10-29 10:22:56.805545"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.806641"], ["updated_at", "2015-10-29 10:22:56.806641"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:22:56.810232"], ["updated_at", "2015-10-29 10:22:56.810232"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-29 10:22:56.815581"], ["updated_at", "2015-10-29 10:22:56.815581"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-29 10:22:56.821237"], ["updated_at", "2015-10-29 10:22:56.821237"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.823055"], ["updated_at", "2015-10-29 10:22:56.823055"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.0ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.3ms) 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)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.9ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 10:25:31.207174"], ["updated_at", "2015-10-29 10:25:31.207174"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:25:31.224512"], ["updated_at", "2015-10-29 10:25:31.224512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.256765"], ["updated_at", "2015-10-29 10:25:31.256765"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by NotifyWith::Api::NotificationsController#index as JSON Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.0ms)  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:25:31.298267"], ["updated_at", "2015-10-29 10:25:31.298267"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.299459"], ["updated_at", "2015-10-29 10:25:31.299459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by NotifyWith::Api::NotificationsController#index as JSON Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 10:25:31.310929"], ["updated_at", "2015-10-29 10:25:31.310929"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:25:31.314116"], ["updated_at", "2015-10-29 10:25:31.314116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.320267"], ["updated_at", "2015-10-29 10:25:31.320267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by NotifyWith::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.1ms)  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 10:25:31.333111"], ["updated_at", "2015-10-29 10:25:31.333111"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:25:31.336061"], ["updated_at", "2015-10-29 10:25:31.336061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.346297"], ["updated_at", "2015-10-29 10:25:31.346297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by NotifyWith::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.2ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:25:31.363026"], ["updated_at", "2015-10-29 10:25:31.363026"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.364312"], ["updated_at", "2015-10-29 10:25:31.364312"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by NotifyWith::Api::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.2ms) 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"]] SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:25:31.525141"], ["updated_at", "2015-10-29 10:25:31.525141"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.526508"], ["updated_at", "2015-10-29 10:25:31.526508"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 10:25:31.534024"], ["updated_at", "2015-10-29 10:25:31.534024"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:25:31.536282"], ["updated_at", "2015-10-29 10:25:31.536282"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.541473"], ["updated_at", "2015-10-29 10:25:31.541473"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.4ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

 (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 10:25:31.574543"], ["updated_at", "2015-10-29 10:25:31.574543"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:25:31.577273"], ["updated_at", "2015-10-29 10:25:31.577273"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.581920"], ["updated_at", "2015-10-29 10:25:31.581920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user8

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 10:25:31.593232"], ["updated_at", "2015-10-29 10:25:31.593232"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:25:31.597037"], ["updated_at", "2015-10-29 10:25:31.597037"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.604938"], ["updated_at", "2015-10-29 10:25:31.604938"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user9

message body

 (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 10:25:31.613124"], ["updated_at", "2015-10-29 10:25:31.613124"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:25:31.615307"], ["updated_at", "2015-10-29 10:25:31.615307"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.621968"], ["updated_at", "2015-10-29 10:25:31.621968"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user10

message body

 (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:25:31.630410"], ["updated_at", "2015-10-29 10:25:31.630410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:25:31.635637"], ["updated_at", "2015-10-29 10:25:31.635637"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.637102"], ["updated_at", "2015-10-29 10:25:31.637102"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.5ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:25:31.644866"], ["updated_at", "2015-10-29 10:25:31.644866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.649733"], ["updated_at", "2015-10-29 10:25:31.649733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:25:31.654371"], ["updated_at", "2015-10-29 10:25:31.654371"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:25:31.657843"], ["updated_at", "2015-10-29 10:25:31.657843"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.658960"], ["updated_at", "2015-10-29 10:25:31.658960"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:25:31.662549"], ["updated_at", "2015-10-29 10:25:31.662549"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.664390"], ["updated_at", "2015-10-29 10:25:31.664390"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:25:31.667900"], ["updated_at", "2015-10-29 10:25:31.667900"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:25:31.671517"], ["updated_at", "2015-10-29 10:25:31.671517"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.672621"], ["updated_at", "2015-10-29 10:25:31.672621"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.676607"], ["updated_at", "2015-10-29 10:25:31.676607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user15

message body

 (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:25:31.685768"], ["updated_at", "2015-10-29 10:25:31.685768"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.9ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:25:31.690837"], ["updated_at", "2015-10-29 10:25:31.690837"]]  (0.3ms) SELECT "users"."id" FROM "users" SQL (0.3ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.696601"], ["updated_at", "2015-10-29 10:25:31.696601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.702375"], ["updated_at", "2015-10-29 10:25:31.702375"]]  (0.1ms) 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] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [1ef581a2-bce6-46dc-84d8-bad2cd023964] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [1ef581a2-bce6-46dc-84d8-bad2cd023964] NotifyWith::NotificationType Load (0.1ms) 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] SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user16

message body

[ActiveJob] [ActionMailer::DeliveryJob] [1ef581a2-bce6-46dc-84d8-bad2cd023964] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.6ms  (0.6ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:25:31.730928"], ["updated_at", "2015-10-29 10:25:31.730928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.6ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:25:31.740016"], ["updated_at", "2015-10-29 10:25:31.740016"]]  (0.4ms) SELECT "users"."id" FROM "users" SQL (1.4ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.746279"], ["updated_at", "2015-10-29 10:25:31.746279"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (2.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-29 10:25:31.766504"], ["updated_at", "2015-10-29 10:25:31.766504"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (16.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:25:31.790065"], ["updated_at", "2015-10-29 10:25:31.790065"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:25:31.798115"], ["updated_at", "2015-10-29 10:25:31.798115"]]  (0.2ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.801341"], ["updated_at", "2015-10-29 10:25:31.801341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:25:31.807232"], ["updated_at", "2015-10-29 10:25:31.807232"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.809628"], ["updated_at", "2015-10-29 10:25:31.809628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-29 10:25:31.837877"], ["updated_at", "2015-10-29 10:25:31.837877"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-29 10:25:31.843135"], ["updated_at", "2015-10-29 10:25:31.843135"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.844757"], ["updated_at", "2015-10-29 10:25:31.844757"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:25:31.850976"], ["updated_at", "2015-10-29 10:25:31.850976"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:25:31.854708"], ["updated_at", "2015-10-29 10:25:31.854708"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.855873"], ["updated_at", "2015-10-29 10:25:31.855873"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:25:31.859586"], ["updated_at", "2015-10-29 10:25:31.859586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.861830"], ["updated_at", "2015-10-29 10:25:31.861830"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 2]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:25:31.871424"], ["updated_at", "2015-10-29 10:25:31.871424"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:25:31.876365"], ["updated_at", "2015-10-29 10:25:31.876365"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.878127"], ["updated_at", "2015-10-29 10:25:31.878127"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-29 10:25:31.885907"], ["updated_at", "2015-10-29 10:25:31.885907"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-29 10:25:31.890273"], ["updated_at", "2015-10-29 10:25:31.890273"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.3ms) 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.893894"], ["updated_at", "2015-10-29 10:25:31.893894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:25:31.903298"], ["updated_at", "2015-10-29 10:25:31.903298"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:25:31.906721"], ["updated_at", "2015-10-29 10:25:31.906721"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.907850"], ["updated_at", "2015-10-29 10:25:31.907850"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:25:31.911472"], ["updated_at", "2015-10-29 10:25:31.911472"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-29 10:25:31.916835"], ["updated_at", "2015-10-29 10:25:31.916835"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-29 10:25:31.921815"], ["updated_at", "2015-10-29 10:25:31.921815"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.2ms) 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.923130"], ["updated_at", "2015-10-29 10:25:31.923130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) 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)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.8ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.7ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.8ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 10:28:03.237778"], ["updated_at", "2015-10-29 10:28:03.237778"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:28:03.254126"], ["updated_at", "2015-10-29 10:28:03.254126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.2ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.285315"], ["updated_at", "2015-10-29 10:28:03.285315"]]  (0.0ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:28:03.329485"], ["updated_at", "2015-10-29 10:28:03.329485"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.330726"], ["updated_at", "2015-10-29 10:28:03.330726"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by NotifyWith::Api::NotificationsController#index as JSON NotifyWith::Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:28:03.359005"], ["updated_at", "2015-10-29 10:28:03.359005"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.361529"], ["updated_at", "2015-10-29 10:28:03.361529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by NotifyWith::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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)  (1.2ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:28:03.389481"], ["updated_at", "2015-10-29 10:28:03.389481"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.390726"], ["updated_at", "2015-10-29 10:28:03.390726"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by NotifyWith::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.0ms) 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/notify_with/api/notifications/show.json.jbuilder (1.7ms) Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.3ms)  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 10:28:03.403903"], ["updated_at", "2015-10-29 10:28:03.403903"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:28:03.405938"], ["updated_at", "2015-10-29 10:28:03.405938"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.410981"], ["updated_at", "2015-10-29 10:28:03.410981"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by NotifyWith::Api::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.1ms) 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"]] SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) NotifyWith::Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-29 10:28:03.585495"], ["updated_at", "2015-10-29 10:28:03.585495"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:28:03.587499"], ["updated_at", "2015-10-29 10:28:03.587499"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.592296"], ["updated_at", "2015-10-29 10:28:03.592296"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:28:03.601846"], ["updated_at", "2015-10-29 10:28:03.601846"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.603020"], ["updated_at", "2015-10-29 10:28:03.603020"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.4ms) SQL (0.1ms) 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: 7bit

user7

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:28:03.641253"], ["updated_at", "2015-10-29 10:28:03.641253"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.642387"], ["updated_at", "2015-10-29 10:28:03.642387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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: 7bit

user8

message body

 (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:28:03.660744"], ["updated_at", "2015-10-29 10:28:03.660744"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.662176"], ["updated_at", "2015-10-29 10:28:03.662176"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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: 7bit

user9

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:28:03.674108"], ["updated_at", "2015-10-29 10:28:03.674108"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.675288"], ["updated_at", "2015-10-29 10:28:03.675288"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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: 7bit

user10

message body

 (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-29 10:28:03.685501"], ["updated_at", "2015-10-29 10:28:03.685501"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-29 10:28:03.694521"], ["updated_at", "2015-10-29 10:28:03.694521"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.2ms) 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.696446"], ["updated_at", "2015-10-29 10:28:03.696446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-29 10:28:03.710767"], ["updated_at", "2015-10-29 10:28:03.710767"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-29 10:28:03.715422"], ["updated_at", "2015-10-29 10:28:03.715422"]]  (0.0ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.716462"], ["updated_at", "2015-10-29 10:28:03.716462"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-29 10:28:03.724479"], ["updated_at", "2015-10-29 10:28:03.724479"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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: 7bit

user15

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-29 10:28:03.737953"], ["updated_at", "2015-10-29 10:28:03.737953"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [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] NotifyWith::Notification Load (0.1ms) 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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [b2a289ce-63a5-4346-9357-ce78020d7245] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [b2a289ce-63a5-4346-9357-ce78020d7245] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["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] SQL (0.1ms) 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: 7bit

user16

message body

[ActiveJob] [ActionMailer::DeliveryJob] [b2a289ce-63a5-4346-9357-ce78020d7245] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.97ms  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-29 10:28:03.776667"], ["updated_at", "2015-10-29 10:28:03.776667"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:28:03.785867"], ["updated_at", "2015-10-29 10:28:03.785867"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:28:03.789545"], ["updated_at", "2015-10-29 10:28:03.789545"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.790795"], ["updated_at", "2015-10-29 10:28:03.790795"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-29 10:28:03.796619"], ["updated_at", "2015-10-29 10:28:03.796619"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-29 10:28:03.801098"], ["updated_at", "2015-10-29 10:28:03.801098"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.802186"], ["updated_at", "2015-10-29 10:28:03.802186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:28:03.809439"], ["updated_at", "2015-10-29 10:28:03.809439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:28:03.815305"], ["updated_at", "2015-10-29 10:28:03.815305"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.817139"], ["updated_at", "2015-10-29 10:28:03.817139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:28:03.825534"], ["updated_at", "2015-10-29 10:28:03.825534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.829163"], ["updated_at", "2015-10-29 10:28:03.829163"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-29 10:28:03.834330"], ["updated_at", "2015-10-29 10:28:03.834330"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-29 10:28:03.838997"], ["updated_at", "2015-10-29 10:28:03.838997"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.840100"], ["updated_at", "2015-10-29 10:28:03.840100"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 2]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-29 10:28:03.855067"], ["updated_at", "2015-10-29 10:28:03.855067"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.861235"], ["updated_at", "2015-10-29 10:28:03.861235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:28:03.864825"], ["updated_at", "2015-10-29 10:28:03.864825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:28:03.871485"], ["updated_at", "2015-10-29 10:28:03.871485"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.873325"], ["updated_at", "2015-10-29 10:28:03.873325"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:28:03.877602"], ["updated_at", "2015-10-29 10:28:03.877602"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.0ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-29 10:28:03.886382"], ["updated_at", "2015-10-29 10:28:03.886382"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-29 10:28:03.894656"], ["updated_at", "2015-10-29 10:28:03.894656"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.895694"], ["updated_at", "2015-10-29 10:28:03.895694"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:28:03.900627"], ["updated_at", "2015-10-29 10:28:03.900627"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:28:03.904091"], ["updated_at", "2015-10-29 10:28:03.904091"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.905211"], ["updated_at", "2015-10-29 10:28:03.905211"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:28:03.909069"], ["updated_at", "2015-10-29 10:28:03.909069"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.9ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) 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)  (0.1ms) select sqlite_version(*)  (0.7ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.7ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.8ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 10:30:18.999256"], ["updated_at", "2015-10-29 10:30:18.999256"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:30:19.016346"], ["updated_at", "2015-10-29 10:30:19.016346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.3ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.050063"], ["updated_at", "2015-10-29 10:30:19.050063"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by NotifyWith::Api::NotificationsController#index as JSON Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:30:19.080703"], ["updated_at", "2015-10-29 10:30:19.080703"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.082039"], ["updated_at", "2015-10-29 10:30:19.082039"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by NotifyWith::Api::NotificationsController#index as JSON Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 10:30:19.092499"], ["updated_at", "2015-10-29 10:30:19.092499"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:30:19.094646"], ["updated_at", "2015-10-29 10:30:19.094646"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.099846"], ["updated_at", "2015-10-29 10:30:19.099846"]]  (0.0ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.3ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:30:19.115869"], ["updated_at", "2015-10-29 10:30:19.115869"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.118211"], ["updated_at", "2015-10-29 10:30:19.118211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by NotifyWith::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 10:30:19.136369"], ["updated_at", "2015-10-29 10:30:19.136369"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:30:19.138768"], ["updated_at", "2015-10-29 10:30:19.138768"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.144554"], ["updated_at", "2015-10-29 10:30:19.144554"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by NotifyWith::Api::NotificationsController#update_all as JSON Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:30:19.296789"], ["updated_at", "2015-10-29 10:30:19.296789"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.298067"], ["updated_at", "2015-10-29 10:30:19.298067"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 10:30:19.305119"], ["updated_at", "2015-10-29 10:30:19.305119"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:30:19.307235"], ["updated_at", "2015-10-29 10:30:19.307235"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.313451"], ["updated_at", "2015-10-29 10:30:19.313451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (2.4ms) SQL (0.2ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user7

message body

 (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 10:30:19.356406"], ["updated_at", "2015-10-29 10:30:19.356406"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:30:19.361368"], ["updated_at", "2015-10-29 10:30:19.361368"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.367458"], ["updated_at", "2015-10-29 10:30:19.367458"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.0ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user8

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 10:30:19.376082"], ["updated_at", "2015-10-29 10:30:19.376082"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:30:19.378157"], ["updated_at", "2015-10-29 10:30:19.378157"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.383313"], ["updated_at", "2015-10-29 10:30:19.383313"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user9

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 10:30:19.391396"], ["updated_at", "2015-10-29 10:30:19.391396"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:30:19.393868"], ["updated_at", "2015-10-29 10:30:19.393868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.400259"], ["updated_at", "2015-10-29 10:30:19.400259"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user10

message body

 (1.0ms) rollback transaction  (0.4ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:30:19.413644"], ["updated_at", "2015-10-29 10:30:19.413644"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:30:19.417887"], ["updated_at", "2015-10-29 10:30:19.417887"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.419120"], ["updated_at", "2015-10-29 10:30:19.419120"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:30:19.424063"], ["updated_at", "2015-10-29 10:30:19.424063"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.425699"], ["updated_at", "2015-10-29 10:30:19.425699"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:30:19.428828"], ["updated_at", "2015-10-29 10:30:19.428828"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:30:19.432792"], ["updated_at", "2015-10-29 10:30:19.432792"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.433982"], ["updated_at", "2015-10-29 10:30:19.433982"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:30:19.437867"], ["updated_at", "2015-10-29 10:30:19.437867"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.439915"], ["updated_at", "2015-10-29 10:30:19.439915"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:30:19.443166"], ["updated_at", "2015-10-29 10:30:19.443166"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:30:19.449830"], ["updated_at", "2015-10-29 10:30:19.449830"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.451971"], ["updated_at", "2015-10-29 10:30:19.451971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:30:19.459380"], ["updated_at", "2015-10-29 10:30:19.459380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.2ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user15

message body

 (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:30:19.470524"], ["updated_at", "2015-10-29 10:30:19.470524"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:30:19.474250"], ["updated_at", "2015-10-29 10:30:19.474250"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.475416"], ["updated_at", "2015-10-29 10:30:19.475416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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:30:19.477174"], ["updated_at", "2015-10-29 10:30:19.477174"]]  (0.0ms) 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] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [45046349-8abe-4f74-a5bb-7dc726aa8fce] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [45046349-8abe-4f74-a5bb-7dc726aa8fce] NotifyWith::NotificationType Load (0.1ms) 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] SQL (0.1ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["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: 7bit

user16

message body

[ActiveJob] [ActionMailer::DeliveryJob] [45046349-8abe-4f74-a5bb-7dc726aa8fce] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.24ms  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:30:19.507869"], ["updated_at", "2015-10-29 10:30:19.507869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:30:19.513687"], ["updated_at", "2015-10-29 10:30:19.513687"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.515355"], ["updated_at", "2015-10-29 10:30:19.515355"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-29 10:30:19.529108"], ["updated_at", "2015-10-29 10:30:19.529108"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:30:19.537702"], ["updated_at", "2015-10-29 10:30:19.537702"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:30:19.541873"], ["updated_at", "2015-10-29 10:30:19.541873"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.543161"], ["updated_at", "2015-10-29 10:30:19.543161"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:30:19.548091"], ["updated_at", "2015-10-29 10:30:19.548091"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.550256"], ["updated_at", "2015-10-29 10:30:19.550256"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-29 10:30:19.558317"], ["updated_at", "2015-10-29 10:30:19.558317"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-29 10:30:19.565741"], ["updated_at", "2015-10-29 10:30:19.565741"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.566876"], ["updated_at", "2015-10-29 10:30:19.566876"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:30:19.579923"], ["updated_at", "2015-10-29 10:30:19.579923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:30:19.583663"], ["updated_at", "2015-10-29 10:30:19.583663"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.584798"], ["updated_at", "2015-10-29 10:30:19.584798"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:30:19.589324"], ["updated_at", "2015-10-29 10:30:19.589324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.591258"], ["updated_at", "2015-10-29 10:30:19.591258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-29 10:30:19.599703"], ["updated_at", "2015-10-29 10:30:19.599703"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-29 10:30:19.609623"], ["updated_at", "2015-10-29 10:30:19.609623"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-29 10:30:19.618118"], ["updated_at", "2015-10-29 10:30:19.618118"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.619734"], ["updated_at", "2015-10-29 10:30:19.619734"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:30:19.629143"], ["updated_at", "2015-10-29 10:30:19.629143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:30:19.635913"], ["updated_at", "2015-10-29 10:30:19.635913"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.637529"], ["updated_at", "2015-10-29 10:30:19.637529"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:30:19.641391"], ["updated_at", "2015-10-29 10:30:19.641391"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-29 10:30:19.646685"], ["updated_at", "2015-10-29 10:30:19.646685"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-29 10:30:19.651530"], ["updated_at", "2015-10-29 10:30:19.651530"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.652655"], ["updated_at", "2015-10-29 10:30:19.652655"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.0ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) 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)  (0.1ms) select sqlite_version(*)  (0.7ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.9ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.8ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 10:31:13.068510"], ["updated_at", "2015-10-29 10:31:13.068510"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:31:13.085868"], ["updated_at", "2015-10-29 10:31:13.085868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.5ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.127273"], ["updated_at", "2015-10-29 10:31:13.127273"]]  (0.0ms) 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)  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:31:13.173180"], ["updated_at", "2015-10-29 10:31:13.173180"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.174509"], ["updated_at", "2015-10-29 10:31:13.174509"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by NotifyWith::Api::NotificationsController#index as JSON NotifyWith::Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:31:13.205332"], ["updated_at", "2015-10-29 10:31:13.205332"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.207383"], ["updated_at", "2015-10-29 10:31:13.207383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by NotifyWith::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.2ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:31:13.235980"], ["updated_at", "2015-10-29 10:31:13.235980"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.237283"], ["updated_at", "2015-10-29 10:31:13.237283"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by NotifyWith::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} NotifyWith::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] NotifyWith::NotificationType Load (0.0ms) 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/notify_with/api/notifications/show.json.jbuilder (1.9ms) Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 0.2ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 10:31:13.251104"], ["updated_at", "2015-10-29 10:31:13.251104"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:31:13.253280"], ["updated_at", "2015-10-29 10:31:13.253280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.258653"], ["updated_at", "2015-10-29 10:31:13.258653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by NotifyWith::Api::NotificationsController#update_all as JSON NotifyWith::Notification Load (0.2ms) 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"]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 4ms (ActiveRecord: 0.3ms) NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-29 10:31:13.430207"], ["updated_at", "2015-10-29 10:31:13.430207"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:31:13.432434"], ["updated_at", "2015-10-29 10:31:13.432434"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.437679"], ["updated_at", "2015-10-29 10:31:13.437679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:31:13.448748"], ["updated_at", "2015-10-29 10:31:13.448748"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.450117"], ["updated_at", "2015-10-29 10:31:13.450117"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.6ms) SQL (0.1ms) 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: 7bit

user7

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:31:13.490252"], ["updated_at", "2015-10-29 10:31:13.490252"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.491602"], ["updated_at", "2015-10-29 10:31:13.491602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user8

message body

 (1.8ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.3ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:31:13.517662"], ["updated_at", "2015-10-29 10:31:13.517662"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.519075"], ["updated_at", "2015-10-29 10:31:13.519075"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user9

message body

 (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:31:13.532798"], ["updated_at", "2015-10-29 10:31:13.532798"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.534004"], ["updated_at", "2015-10-29 10:31:13.534004"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user10

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-29 10:31:13.544798"], ["updated_at", "2015-10-29 10:31:13.544798"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-29 10:31:13.553682"], ["updated_at", "2015-10-29 10:31:13.553682"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.555281"], ["updated_at", "2015-10-29 10:31:13.555281"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-29 10:31:13.563500"], ["updated_at", "2015-10-29 10:31:13.563500"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" SQL (0.3ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-29 10:31:13.573126"], ["updated_at", "2015-10-29 10:31:13.573126"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.2ms) 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.575619"], ["updated_at", "2015-10-29 10:31:13.575619"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-29 10:31:13.585086"], ["updated_at", "2015-10-29 10:31:13.585086"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user15

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-29 10:31:13.599287"], ["updated_at", "2015-10-29 10:31:13.599287"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [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] NotifyWith::Notification Load (0.1ms) 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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c6014871-ed3f-44b1-841a-da239192b921] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c6014871-ed3f-44b1-841a-da239192b921] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["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] SQL (0.0ms) 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: 7bit

user16

message body

[ActiveJob] [ActionMailer::DeliveryJob] [c6014871-ed3f-44b1-841a-da239192b921] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.25ms  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-29 10:31:13.640176"], ["updated_at", "2015-10-29 10:31:13.640176"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:31:13.649503"], ["updated_at", "2015-10-29 10:31:13.649503"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:31:13.653406"], ["updated_at", "2015-10-29 10:31:13.653406"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.654668"], ["updated_at", "2015-10-29 10:31:13.654668"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-29 10:31:13.660633"], ["updated_at", "2015-10-29 10:31:13.660633"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-29 10:31:13.665855"], ["updated_at", "2015-10-29 10:31:13.665855"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.667020"], ["updated_at", "2015-10-29 10:31:13.667020"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:31:13.675768"], ["updated_at", "2015-10-29 10:31:13.675768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:31:13.681208"], ["updated_at", "2015-10-29 10:31:13.681208"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.3ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.682629"], ["updated_at", "2015-10-29 10:31:13.682629"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.2ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:31:13.694339"], ["updated_at", "2015-10-29 10:31:13.694339"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.696456"], ["updated_at", "2015-10-29 10:31:13.696456"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-29 10:31:13.700986"], ["updated_at", "2015-10-29 10:31:13.700986"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-29 10:31:13.705929"], ["updated_at", "2015-10-29 10:31:13.705929"]]  (0.0ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.707051"], ["updated_at", "2015-10-29 10:31:13.707051"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 2]] NotifyWith::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-29 10:31:13.724182"], ["updated_at", "2015-10-29 10:31:13.724182"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.732754"], ["updated_at", "2015-10-29 10:31:13.732754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (1.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:31:13.741035"], ["updated_at", "2015-10-29 10:31:13.741035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:31:13.746729"], ["updated_at", "2015-10-29 10:31:13.746729"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.748258"], ["updated_at", "2015-10-29 10:31:13.748258"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:31:13.752339"], ["updated_at", "2015-10-29 10:31:13.752339"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-29 10:31:13.757672"], ["updated_at", "2015-10-29 10:31:13.757672"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-29 10:31:13.762453"], ["updated_at", "2015-10-29 10:31:13.762453"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.763548"], ["updated_at", "2015-10-29 10:31:13.763548"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] NotifyWith::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:31:13.768816"], ["updated_at", "2015-10-29 10:31:13.768816"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 NotifyWith::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:31:13.773296"], ["updated_at", "2015-10-29 10:31:13.773296"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.775972"], ["updated_at", "2015-10-29 10:31:13.775972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:31:13.782233"], ["updated_at", "2015-10-29 10:31:13.782233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotifyWith::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.3ms) 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)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.2ms)  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'   (0.9ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 10:49:47.742140"], ["updated_at", "2015-10-29 10:49:47.742140"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:49:47.769629"], ["updated_at", "2015-10-29 10:49:47.769629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.3ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.799583"], ["updated_at", "2015-10-29 10:49:47.799583"]]  (0.0ms) 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)  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:49:47.846539"], ["updated_at", "2015-10-29 10:49:47.846539"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.847927"], ["updated_at", "2015-10-29 10:49:47.847927"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.3ms) SELECT "notification_types"."id" FROM "notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:49:47.883801"], ["updated_at", "2015-10-29 10:49:47.883801"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.885980"], ["updated_at", "2015-10-29 10:49:47.885980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.3ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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)  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:49:47.918127"], ["updated_at", "2015-10-29 10:49:47.918127"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.919430"], ["updated_at", "2015-10-29 10:49:47.919430"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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.2ms) Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.3ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 10:49:47.933607"], ["updated_at", "2015-10-29 10:49:47.933607"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:49:47.935829"], ["updated_at", "2015-10-29 10:49:47.935829"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.940987"], ["updated_at", "2015-10-29 10:49:47.940987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.4ms) 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"]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 4ms (ActiveRecord: 0.5ms) Wupee::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-29 10:49:48.112341"], ["updated_at", "2015-10-29 10:49:48.112341"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:49:48.114837"], ["updated_at", "2015-10-29 10:49:48.114837"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.120164"], ["updated_at", "2015-10-29 10:49:48.120164"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:49:48.131556"], ["updated_at", "2015-10-29 10:49:48.131556"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.132825"], ["updated_at", "2015-10-29 10:49:48.132825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.5ms) SQL (0.1ms) 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: 7bit

user7

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:49:48.174278"], ["updated_at", "2015-10-29 10:49:48.174278"]]  (0.4ms) SELECT "users"."id" FROM "users" SQL (0.5ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.178836"], ["updated_at", "2015-10-29 10:49:48.178836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user8

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:49:48.198856"], ["updated_at", "2015-10-29 10:49:48.198856"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.200830"], ["updated_at", "2015-10-29 10:49:48.200830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.0ms) 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: 7bit

user9

message body

 (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:49:48.215437"], ["updated_at", "2015-10-29 10:49:48.215437"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.218777"], ["updated_at", "2015-10-29 10:49:48.218777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user10

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-29 10:49:48.231128"], ["updated_at", "2015-10-29 10:49:48.231128"]]  (0.5ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-29 10:49:48.245855"], ["updated_at", "2015-10-29 10:49:48.245855"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.247350"], ["updated_at", "2015-10-29 10:49:48.247350"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-29 10:49:48.256039"], ["updated_at", "2015-10-29 10:49:48.256039"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-29 10:49:48.260903"], ["updated_at", "2015-10-29 10:49:48.260903"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.262140"], ["updated_at", "2015-10-29 10:49:48.262140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-29 10:49:48.273421"], ["updated_at", "2015-10-29 10:49:48.273421"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) SQL (0.1ms) 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: 7bit

user15

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-29 10:49:48.300118"], ["updated_at", "2015-10-29 10:49:48.300118"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [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] Wupee::Notification Load (0.1ms) 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] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [58457bd5-2d6a-4cd1-ba69-1ca16b22e216] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [58457bd5-2d6a-4cd1-ba69-1ca16b22e216] Wupee::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["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] SQL (0.1ms) 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: 7bit

user16

message body

[ActiveJob] [ActionMailer::DeliveryJob] [58457bd5-2d6a-4cd1-ba69-1ca16b22e216] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.95ms  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-29 10:49:48.337190"], ["updated_at", "2015-10-29 10:49:48.337190"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:49:48.352319"], ["updated_at", "2015-10-29 10:49:48.352319"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:49:48.362523"], ["updated_at", "2015-10-29 10:49:48.362523"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.364160"], ["updated_at", "2015-10-29 10:49:48.364160"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-29 10:49:48.370253"], ["updated_at", "2015-10-29 10:49:48.370253"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-29 10:49:48.375945"], ["updated_at", "2015-10-29 10:49:48.375945"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.377197"], ["updated_at", "2015-10-29 10:49:48.377197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:49:48.386319"], ["updated_at", "2015-10-29 10:49:48.386319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:49:48.392735"], ["updated_at", "2015-10-29 10:49:48.392735"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.394618"], ["updated_at", "2015-10-29 10:49:48.394618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.5ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.5ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:49:48.409127"], ["updated_at", "2015-10-29 10:49:48.409127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.412276"], ["updated_at", "2015-10-29 10:49:48.412276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-29 10:49:48.417786"], ["updated_at", "2015-10-29 10:49:48.417786"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-29 10:49:48.422977"], ["updated_at", "2015-10-29 10:49:48.422977"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.2ms) 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.424149"], ["updated_at", "2015-10-29 10:49:48.424149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 2]] Wupee::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-29 10:49:48.440028"], ["updated_at", "2015-10-29 10:49:48.440028"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.447080"], ["updated_at", "2015-10-29 10:49:48.447080"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:49:48.452455"], ["updated_at", "2015-10-29 10:49:48.452455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:49:48.457463"], ["updated_at", "2015-10-29 10:49:48.457463"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.458785"], ["updated_at", "2015-10-29 10:49:48.458785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:49:48.464589"], ["updated_at", "2015-10-29 10:49:48.464589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.4ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] Wupee::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-29 10:49:48.478384"], ["updated_at", "2015-10-29 10:49:48.478384"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-29 10:49:48.483566"], ["updated_at", "2015-10-29 10:49:48.483566"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.485161"], ["updated_at", "2015-10-29 10:49:48.485161"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] Wupee::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:49:48.490565"], ["updated_at", "2015-10-29 10:49:48.490565"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:49:48.494677"], ["updated_at", "2015-10-29 10:49:48.494677"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.496351"], ["updated_at", "2015-10-29 10:49:48.496351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:49:48.502163"], ["updated_at", "2015-10-29 10:49:48.502163"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.3ms) 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)  (0.1ms) select sqlite_version(*)  (1.1ms) CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.9ms) CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name")  (0.9ms) 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_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028111239')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110352')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 11:11:34.287272"], ["updated_at", "2015-10-29 11:11:34.287272"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 11:11:34.303082"], ["updated_at", "2015-10-29 11:11:34.303082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.4ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.2ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.338119"], ["updated_at", "2015-10-29 11:11:34.338119"]]  (0.0ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.3ms) SELECT "notification_types"."id" FROM "notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 11:11:34.391635"], ["updated_at", "2015-10-29 11:11:34.391635"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.393289"], ["updated_at", "2015-10-29 11:11:34.393289"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 11:11:34.422569"], ["updated_at", "2015-10-29 11:11:34.422569"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.424019"], ["updated_at", "2015-10-29 11:11:34.424019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 11:11:34.445122"], ["updated_at", "2015-10-29 11:11:34.445122"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.446442"], ["updated_at", "2015-10-29 11:11:34.446442"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] SQL (0.2ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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.3ms) Completed 200 OK in 6ms (Views: 2.7ms | ActiveRecord: 0.3ms)  (0.9ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 11:11:34.463219"], ["updated_at", "2015-10-29 11:11:34.463219"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 11:11:34.465518"], ["updated_at", "2015-10-29 11:11:34.465518"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.471765"], ["updated_at", "2015-10-29 11:11:34.471765"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.2ms) 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"]] SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.2ms) Wupee::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-29 11:11:34.630576"], ["updated_at", "2015-10-29 11:11:34.630576"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 11:11:34.632807"], ["updated_at", "2015-10-29 11:11:34.632807"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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.638504"], ["updated_at", "2015-10-29 11:11:34.638504"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 11:11:34.649344"], ["updated_at", "2015-10-29 11:11:34.649344"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.650997"], ["updated_at", "2015-10-29 11:11:34.650997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.6ms) SQL (0.1ms) 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: 7bit

user7

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 11:11:34.689397"], ["updated_at", "2015-10-29 11:11:34.689397"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.691204"], ["updated_at", "2015-10-29 11:11:34.691204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user8

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 11:11:34.707741"], ["updated_at", "2015-10-29 11:11:34.707741"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.709096"], ["updated_at", "2015-10-29 11:11:34.709096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user9

message body

 (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 11:11:34.723327"], ["updated_at", "2015-10-29 11:11:34.723327"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.724917"], ["updated_at", "2015-10-29 11:11:34.724917"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user10

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-29 11:11:34.734834"], ["updated_at", "2015-10-29 11:11:34.734834"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-29 11:11:34.740541"], ["updated_at", "2015-10-29 11:11:34.740541"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.741915"], ["updated_at", "2015-10-29 11:11:34.741915"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-29 11:11:34.750086"], ["updated_at", "2015-10-29 11:11:34.750086"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-29 11:11:34.754890"], ["updated_at", "2015-10-29 11:11:34.754890"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.2ms) 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.756465"], ["updated_at", "2015-10-29 11:11:34.756465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-29 11:11:34.765406"], ["updated_at", "2015-10-29 11:11:34.765406"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user15

message body

 (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-29 11:11:34.780303"], ["updated_at", "2015-10-29 11:11:34.780303"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [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] Wupee::Notification Load (0.1ms) 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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [115bd7c6-3048-481f-998e-2c0a783af697] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [115bd7c6-3048-481f-998e-2c0a783af697] Wupee::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["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] SQL (0.1ms) 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: 7bit

user16

message body

[ActiveJob] [ActionMailer::DeliveryJob] [115bd7c6-3048-481f-998e-2c0a783af697] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.9ms  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-29 11:11:34.816603"], ["updated_at", "2015-10-29 11:11:34.816603"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 11:11:34.826580"], ["updated_at", "2015-10-29 11:11:34.826580"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 11:11:34.830692"], ["updated_at", "2015-10-29 11:11:34.830692"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.831911"], ["updated_at", "2015-10-29 11:11:34.831911"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-29 11:11:34.838473"], ["updated_at", "2015-10-29 11:11:34.838473"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-29 11:11:34.843096"], ["updated_at", "2015-10-29 11:11:34.843096"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.846097"], ["updated_at", "2015-10-29 11:11:34.846097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 11:11:34.854692"], ["updated_at", "2015-10-29 11:11:34.854692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 11:11:34.859445"], ["updated_at", "2015-10-29 11:11:34.859445"]]  (0.0ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.860709"], ["updated_at", "2015-10-29 11:11:34.860709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 11:11:34.864875"], ["updated_at", "2015-10-29 11:11:34.864875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.866696"], ["updated_at", "2015-10-29 11:11:34.866696"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-29 11:11:34.871925"], ["updated_at", "2015-10-29 11:11:34.871925"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-29 11:11:34.877050"], ["updated_at", "2015-10-29 11:11:34.877050"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.878235"], ["updated_at", "2015-10-29 11:11:34.878235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 2]] Wupee::Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-29 11:11:34.893922"], ["updated_at", "2015-10-29 11:11:34.893922"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.900603"], ["updated_at", "2015-10-29 11:11:34.900603"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 11:11:34.904497"], ["updated_at", "2015-10-29 11:11:34.904497"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 11:11:34.908577"], ["updated_at", "2015-10-29 11:11:34.908577"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.909816"], ["updated_at", "2015-10-29 11:11:34.909816"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 11:11:34.913947"], ["updated_at", "2015-10-29 11:11:34.913947"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] Wupee::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-29 11:11:34.919141"], ["updated_at", "2015-10-29 11:11:34.919141"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-29 11:11:34.924797"], ["updated_at", "2015-10-29 11:11:34.924797"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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.926136"], ["updated_at", "2015-10-29 11:11:34.926136"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] Wupee::NotificationType Load (0.1ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 11:11:34.931912"], ["updated_at", "2015-10-29 11:11:34.931912"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 11:11:34.935623"], ["updated_at", "2015-10-29 11:11:34.935623"]]  (0.1ms) SELECT "users"."id" FROM "users" SQL (0.1ms) INSERT INTO "notification_type_configurations" ("notification_type_id", "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.936815"], ["updated_at", "2015-10-29 11:11:34.936815"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "notification_types"."id" FROM "notification_types" SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 11:11:34.941510"], ["updated_at", "2015-10-29 11:11:34.941510"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.9ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.2ms) 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "idx_wupee_notif_type_config_on_notification_type_id" ON "wupee_notification_type_configurations" ("notification_type_id")  (0.1ms) 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'  (0.9ms) CREATE UNIQUE INDEX "idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id" ON "wupee_notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "index_wupee_notification_types_on_name" ON "wupee_notification_types" ("name")  (1.3ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151029113659')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151029113657')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151029113658') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.1ms) select sqlite_version(*)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUsers (20150213150625)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213150625"]]  (1.6ms) commit transaction Migrating to CreateMessages (20150213152846)  (0.1ms) begin transaction  (1.2ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213152846"]]  (0.8ms) commit transaction Migrating to CreateWupeeNotificationTypeConfigurations (20151029113101)  (0.2ms) begin transaction  (0.7ms) 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)  (0.3ms) CREATE INDEX "idx_wupee_notif_type_config_on_notification_type_id" ON "wupee_notification_type_configurations" ("notification_type_id")  (0.2ms) 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'  (1.7ms) CREATE UNIQUE INDEX "idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id" ON "wupee_notification_type_configurations" ("receiver_type", "receiver_id") SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029113101"]]  (1.5ms) commit transaction Migrating to CreateWupeeNotifications (20151029113107)  (0.1ms) begin transaction  (1.9ms) 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)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029113107"]]  (0.9ms) commit transaction Migrating to CreateWupeeNotificationTypes (20151029113122)  (0.2ms) begin transaction  (0.5ms) CREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_wupee_notification_types_on_name" ON "wupee_notification_types" ("name") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029113122"]]  (1.1ms) commit transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.6ms) 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'  (0.2ms)  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'   (0.2ms) 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' ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.5ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.9ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 11:53:21.253215"], ["updated_at", "2015-10-29 11:53:21.253215"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (1.0ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.280265"], ["updated_at", "2015-10-29 11:53:21.280265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 11:53:21.296075"], ["updated_at", "2015-10-29 11:53:21.296075"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 11:53:21.309759"], ["updated_at", "2015-10-29 11:53:21.309759"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.312634"], ["updated_at", "2015-10-29 11:53:21.312634"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.5ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 11:53:55.657168"], ["updated_at", "2015-10-29 11:53:55.657168"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.8ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.676789"], ["updated_at", "2015-10-29 11:53:55.676789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.5ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 11:53:55.699323"], ["updated_at", "2015-10-29 11:53:55.699323"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 11:53:55.711826"], ["updated_at", "2015-10-29 11:53:55.711826"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.714544"], ["updated_at", "2015-10-29 11:53:55.714544"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 11:54:28.320689"], ["updated_at", "2015-10-29 11:54:28.320689"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.338981"], ["updated_at", "2015-10-29 11:54:28.338981"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (9.4ms) rollback transaction  (0.3ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 11:54:28.361450"], ["updated_at", "2015-10-29 11:54:28.361450"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 11:54:28.374175"], ["updated_at", "2015-10-29 11:54:28.374175"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.376778"], ["updated_at", "2015-10-29 11:54:28.376778"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 11:56:14.864262"], ["updated_at", "2015-10-29 11:56:14.864262"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.885088"], ["updated_at", "2015-10-29 11:56:14.885088"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.4ms) 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  (8.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 11:56:14.911497"], ["updated_at", "2015-10-29 11:56:14.911497"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 11:56:14.928011"], ["updated_at", "2015-10-29 11:56:14.928011"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.930893"], ["updated_at", "2015-10-29 11:56:14.930893"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.9ms) rollback transaction ActiveRecord::SchemaMigration Load (7.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 11:56:39.312065"], ["updated_at", "2015-10-29 11:56:39.312065"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.329268"], ["updated_at", "2015-10-29 11:56:39.329268"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 11:56:39.340719"], ["updated_at", "2015-10-29 11:56:39.340719"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.8ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 11:56:39.361667"], ["updated_at", "2015-10-29 11:56:39.361667"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.364194"], ["updated_at", "2015-10-29 11:56:39.364194"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.5ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.4ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.6ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:28.334975"], ["updated_at", "2015-10-29 13:12:28.334975"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.6ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.7ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.350079"], ["updated_at", "2015-10-29 13:12:28.350079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) 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 19ms (Views: 11.1ms | ActiveRecord: 0.0ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 13:12:28.392050"], ["updated_at", "2015-10-29 13:12:28.392050"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 13:12:28.401818"], ["updated_at", "2015-10-29 13:12:28.401818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (1.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.420849"], ["updated_at", "2015-10-29 13:12:28.420849"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.2ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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 (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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 13:12:28.452079"], ["updated_at", "2015-10-29 13:12:28.452079"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 13:12:28.458353"], ["updated_at", "2015-10-29 13:12:28.458353"]]  (0.6ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.7ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.472922"], ["updated_at", "2015-10-29 13:12:28.472922"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.3ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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 (4.2ms) Completed 200 OK in 14ms (Views: 9.0ms | ActiveRecord: 0.5ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 13:12:28.499523"], ["updated_at", "2015-10-29 13:12:28.499523"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 13:12:28.509416"], ["updated_at", "2015-10-29 13:12:28.509416"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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.532768"], ["updated_at", "2015-10-29 13:12:28.532768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.2ms) 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]] SQL (0.2ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.7ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:28.584064"], ["updated_at", "2015-10-29 13:12:28.584064"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.594690"], ["updated_at", "2015-10-29 13:12:28.594690"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.5ms) 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"]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 4ms (ActiveRecord: 0.5ms) Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:28.786435"], ["updated_at", "2015-10-29 13:12:28.786435"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.6ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.795252"], ["updated_at", "2015-10-29 13:12:28.795252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 13:12:28.806735"], ["updated_at", "2015-10-29 13:12:28.806735"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 13:12:28.809606"], ["updated_at", "2015-10-29 13:12:28.809606"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.816767"], ["updated_at", "2015-10-29 13:12:28.816767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.8ms) SQL (0.2ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user7

message body

 (1.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 13:12:28.867623"], ["updated_at", "2015-10-29 13:12:28.867623"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 13:12:28.876206"], ["updated_at", "2015-10-29 13:12:28.876206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.891136"], ["updated_at", "2015-10-29 13:12:28.891136"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user8

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 13:12:28.899929"], ["updated_at", "2015-10-29 13:12:28.899929"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 13:12:28.907328"], ["updated_at", "2015-10-29 13:12:28.907328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.933001"], ["updated_at", "2015-10-29 13:12:28.933001"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.2ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user9

message body

 (1.7ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 13:12:28.956301"], ["updated_at", "2015-10-29 13:12:28.956301"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 13:12:28.965581"], ["updated_at", "2015-10-29 13:12:28.965581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.0ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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.985140"], ["updated_at", "2015-10-29 13:12:28.985140"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user10

message body

 (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 13:12:29.002462"], ["updated_at", "2015-10-29 13:12:29.002462"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:29.048038"], ["updated_at", "2015-10-29 13:12:29.048038"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.054416"], ["updated_at", "2015-10-29 13:12:29.054416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 13:12:29.062332"], ["updated_at", "2015-10-29 13:12:29.062332"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.064114"], ["updated_at", "2015-10-29 13:12:29.064114"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 13:12:29.067685"], ["updated_at", "2015-10-29 13:12:29.067685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) 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"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:29.086463"], ["updated_at", "2015-10-29 13:12:29.086463"]]  (0.5ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.093237"], ["updated_at", "2015-10-29 13:12:29.093237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 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 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 13:12:29.105461"], ["updated_at", "2015-10-29 13:12:29.105461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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.109203"], ["updated_at", "2015-10-29 13:12:29.109203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 13:12:29.117416"], ["updated_at", "2015-10-29 13:12:29.117416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:29.126239"], ["updated_at", "2015-10-29 13:12:29.126239"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.132396"], ["updated_at", "2015-10-29 13:12:29.132396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) 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.136871"], ["updated_at", "2015-10-29 13:12:29.136871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.3ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user15

message body

 (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 13:12:29.160166"], ["updated_at", "2015-10-29 13:12:29.160166"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:29.165693"], ["updated_at", "2015-10-29 13:12:29.165693"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.6ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.7ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.175325"], ["updated_at", "2015-10-29 13:12:29.175325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.183712"], ["updated_at", "2015-10-29 13:12:29.183712"]]  (0.1ms) 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] Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7b6a71fb-0b6e-410a-a653-69d6d5d163ca] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7b6a71fb-0b6e-410a-a653-69d6d5d163ca] Wupee::NotificationType Load (0.0ms) 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] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user16

message body

[ActiveJob] [ActionMailer::DeliveryJob] [7b6a71fb-0b6e-410a-a653-69d6d5d163ca] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.63ms  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 13:12:29.228096"], ["updated_at", "2015-10-29 13:12:29.228096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:29.234925"], ["updated_at", "2015-10-29 13:12:29.234925"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.241202"], ["updated_at", "2015-10-29 13:12:29.241202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-29 13:12:29.256451"], ["updated_at", "2015-10-29 13:12:29.256451"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 13:12:29.275344"], ["updated_at", "2015-10-29 13:12:29.275344"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:29.282083"], ["updated_at", "2015-10-29 13:12:29.282083"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.284762"], ["updated_at", "2015-10-29 13:12:29.284762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 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 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 13:12:29.307341"], ["updated_at", "2015-10-29 13:12:29.307341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.309932"], ["updated_at", "2015-10-29 13:12:29.309932"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-29 13:12:29.316382"], ["updated_at", "2015-10-29 13:12:29.316382"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-29 13:12:29.331191"], ["updated_at", "2015-10-29 13:12:29.331191"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.335433"], ["updated_at", "2015-10-29 13:12:29.335433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 13:12:29.345379"], ["updated_at", "2015-10-29 13:12:29.345379"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:29.349882"], ["updated_at", "2015-10-29 13:12:29.349882"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.6ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.355603"], ["updated_at", "2015-10-29 13:12:29.355603"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.5ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 13:12:29.372576"], ["updated_at", "2015-10-29 13:12:29.372576"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.374607"], ["updated_at", "2015-10-29 13:12:29.374607"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 2]] Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message') SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 13:12:29.386575"], ["updated_at", "2015-10-29 13:12:29.386575"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:29.392959"], ["updated_at", "2015-10-29 13:12:29.392959"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.400612"], ["updated_at", "2015-10-29 13:12:29.400612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (1.8ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-29 13:12:29.428909"], ["updated_at", "2015-10-29 13:12:29.428909"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-29 13:12:29.450908"], ["updated_at", "2015-10-29 13:12:29.450908"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 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 SQL (0.3ms) 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.456019"], ["updated_at", "2015-10-29 13:12:29.456019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 13:12:29.466060"], ["updated_at", "2015-10-29 13:12:29.466060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.6ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:29.486988"], ["updated_at", "2015-10-29 13:12:29.486988"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.498269"], ["updated_at", "2015-10-29 13:12:29.498269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 13:12:29.504941"], ["updated_at", "2015-10-29 13:12:29.504941"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.2ms) rollback transaction  (0.3ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-29 13:12:29.518540"], ["updated_at", "2015-10-29 13:12:29.518540"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-29 13:12:29.539332"], ["updated_at", "2015-10-29 13:12:29.539332"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 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 SQL (0.2ms) 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.551265"], ["updated_at", "2015-10-29 13:12:29.551265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.8ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:29.572833"], ["updated_at", "2015-10-29 13:12:29.572833"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.582255"], ["updated_at", "2015-10-29 13:12:29.582255"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-10-29 13:12:29.588088"], ["updated_at", "2015-10-29 13:12:29.588088"]]  (0.6ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (1.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.3ms) 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  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.5ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.8ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:29.629251"], ["updated_at", "2015-10-29 13:12:29.629251"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.635840"], ["updated_at", "2015-10-29 13:12:29.635840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.5ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (7.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.4ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.5ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) 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"]]  (0.6ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (1.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.5ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.5ms) SELECT COUNT(*) FROM "users"  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (8.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_types"  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (8.0ms) rollback transaction ActiveRecord::SchemaMigration Load (7.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.1ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "users"  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:05:26.489340"], ["updated_at", "2015-10-29 14:05:26.489340"]]  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_types"  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (1.0ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.4ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.0ms) 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"]]  (0.4ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_types"  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.8ms) 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:47.579053"], ["updated_at", "2015-10-29 14:05:47.579053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:06:08.720946"], ["updated_at", "2015-10-29 14:06:08.720946"]]  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_types"  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.5ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (8.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.4ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.1ms) 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"]]  (0.5ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) SAVEPOINT active_record_1 SQL (12.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:06:57.296070"], ["updated_at", "2015-10-29 14:06:57.296070"]]  (0.5ms) SELECT COUNT(*) FROM "wupee_notification_types"  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.8ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:07:10.815309"], ["updated_at", "2015-10-29 14:07:10.815309"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.3ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.4ms) 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:07:10.843517"], ["updated_at", "2015-10-29 14:07:10.843517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.4ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:07:43.269072"], ["updated_at", "2015-10-29 14:07:43.269072"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.3ms) 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:07:43.301448"], ["updated_at", "2015-10-29 14:07:43.301448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (8.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.4ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.6ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (5.0ms) 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"]]  (0.4ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:11:25.322202"], ["updated_at", "2015-10-29 14:11:25.322202"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.8ms) 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:11:25.353596"], ["updated_at", "2015-10-29 14:11:25.353596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.7ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:12:12.682919"], ["updated_at", "2015-10-29 14:12:12.682919"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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:12:12.720276"], ["updated_at", "2015-10-29 14:12:12.720276"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (8.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (8.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:12:54.907363"], ["updated_at", "2015-10-29 14:12:54.907363"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:12:54.934322"], ["updated_at", "2015-10-29 14:12:54.934322"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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:12:54.948681"], ["updated_at", "2015-10-29 14:12:54.948681"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 14:12:54.983214"], ["updated_at", "2015-10-29 14:12:54.983214"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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:12:54.987015"], ["updated_at", "2015-10-29 14:12:54.987015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.2ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (0.9ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:17:05.176806"], ["updated_at", "2015-10-29 14:17:05.176806"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:17:05.198081"], ["updated_at", "2015-10-29 14:17:05.198081"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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:17:05.218982"], ["updated_at", "2015-10-29 14:17:05.218982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:17:05.255059"], ["updated_at", "2015-10-29 14:17:05.255059"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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:17:05.258190"], ["updated_at", "2015-10-29 14:17:05.258190"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.2ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.3ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (3.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.3ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.2ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 14:17:05.295260"], ["updated_at", "2015-10-29 14:17:05.295260"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (1.0ms) 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:05.304390"], ["updated_at", "2015-10-29 14:17:05.304390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (7.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:17:23.071713"], ["updated_at", "2015-10-29 14:17:23.071713"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:17:23.103681"], ["updated_at", "2015-10-29 14:17:23.103681"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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:17:23.114812"], ["updated_at", "2015-10-29 14:17:23.114812"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.2ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:17:23.149658"], ["updated_at", "2015-10-29 14:17:23.149658"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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:17:23.152699"], ["updated_at", "2015-10-29 14:17:23.152699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.2ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (1.2ms) rollback transaction  (0.4ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.6ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.7ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:17:23.184532"], ["updated_at", "2015-10-29 14:17:23.184532"]]  (0.6ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.6ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.5ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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:17:23.205210"], ["updated_at", "2015-10-29 14:17:23.205210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:17:23.231281"], ["updated_at", "2015-10-29 14:17:23.231281"]]  (0.2ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.7ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (1.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:27:24.890255"], ["updated_at", "2015-10-29 14:27:24.890255"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.7ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:27:24.917646"], ["updated_at", "2015-10-29 14:27:24.917646"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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:24.937522"], ["updated_at", "2015-10-29 14:27:24.937522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:27:24.973117"], ["updated_at", "2015-10-29 14:27:24.973117"]]  (0.5ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.8ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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:24.980777"], ["updated_at", "2015-10-29 14:27:24.980777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.2ms) 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"]] SQL (0.3ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations"  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 14:27:25.054822"], ["updated_at", "2015-10-29 14:27:25.054822"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.4ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.5ms) 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:27:25.066911"], ["updated_at", "2015-10-29 14:27:25.066911"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (1.3ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:28:17.451041"], ["updated_at", "2015-10-29 14:28:17.451041"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:28:17.476016"], ["updated_at", "2015-10-29 14:28:17.476016"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.497051"], ["updated_at", "2015-10-29 14:28:17.497051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (8.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:28:17.540938"], ["updated_at", "2015-10-29 14:28:17.540938"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.547226"], ["updated_at", "2015-10-29 14:28:17.547226"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.2ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.2ms) 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"]] SQL (0.2ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.3ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types"  (0.3ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.7ms) 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"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 14:28:17.607258"], ["updated_at", "2015-10-29 14:28:17.607258"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.3ms) 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:28:17.614901"], ["updated_at", "2015-10-29 14:28:17.614901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.3ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (1.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:28:47.732549"], ["updated_at", "2015-10-29 14:28:47.732549"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:28:47.770540"], ["updated_at", "2015-10-29 14:28:47.770540"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.6ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.7ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.785427"], ["updated_at", "2015-10-29 14:28:47.785427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:28:47.820720"], ["updated_at", "2015-10-29 14:28:47.820720"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.7ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.825850"], ["updated_at", "2015-10-29 14:28:47.825850"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.6ms) 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"]] SQL (0.6ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types"  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (2.8ms) 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"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.6ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 14:28:47.908042"], ["updated_at", "2015-10-29 14:28:47.908042"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.7ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.6ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.6ms) 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:28:47.921801"], ["updated_at", "2015-10-29 14:28:47.921801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.3ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.6ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (2.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:30:28.033726"], ["updated_at", "2015-10-29 14:30:28.033726"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.5ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.6ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:30:28.073246"], ["updated_at", "2015-10-29 14:30:28.073246"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.5ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.088162"], ["updated_at", "2015-10-29 14:30:28.088162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.2ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.6ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:30:28.123439"], ["updated_at", "2015-10-29 14:30:28.123439"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.133104"], ["updated_at", "2015-10-29 14:30:28.133104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.0ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.6ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.4ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types"  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.4ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.6ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 14:30:28.222320"], ["updated_at", "2015-10-29 14:30:28.222320"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.4ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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:30:28.237402"], ["updated_at", "2015-10-29 14:30:28.237402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:31:05.875689"], ["updated_at", "2015-10-29 14:31:05.875689"]]  (0.5ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.5ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:31:05.908430"], ["updated_at", "2015-10-29 14:31:05.908430"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.6ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.6ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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:05.921833"], ["updated_at", "2015-10-29 14:31:05.921833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.2ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:31:05.958223"], ["updated_at", "2015-10-29 14:31:05.958223"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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:05.964276"], ["updated_at", "2015-10-29 14:31:05.964276"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.2ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.2ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.0ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.2ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types"  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.7ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (5.2ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 14:31:06.054562"], ["updated_at", "2015-10-29 14:31:06.054562"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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:06.058424"], ["updated_at", "2015-10-29 14:31:06.058424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.2ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (1.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:31:40.727843"], ["updated_at", "2015-10-29 14:31:40.727843"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:31:40.759164"], ["updated_at", "2015-10-29 14:31:40.759164"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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:40.770003"], ["updated_at", "2015-10-29 14:31:40.770003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.3ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (9.0ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.8ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:31:40.816963"], ["updated_at", "2015-10-29 14:31:40.816963"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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:40.826976"], ["updated_at", "2015-10-29 14:31:40.826976"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.0ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (2.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-29 14:31:40.849558"], ["updated_at", "2015-10-29 14:31:40.849558"]]  (0.5ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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:40.867732"], ["updated_at", "2015-10-29 14:31:40.867732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.0ms) 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"]] SQL (0.2ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.0ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:31:40.894869"], ["updated_at", "2015-10-29 14:31:40.894869"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (2.5ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.3ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (1.4ms) rollback transaction ActiveRecord::SchemaMigration Load (7.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:31:57.068166"], ["updated_at", "2015-10-29 14:31:57.068166"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:31:57.091835"], ["updated_at", "2015-10-29 14:31:57.091835"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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:57.108168"], ["updated_at", "2015-10-29 14:31:57.108168"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.2ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (8.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:31:57.148459"], ["updated_at", "2015-10-29 14:31:57.148459"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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:57.155568"], ["updated_at", "2015-10-29 14:31:57.155568"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.2ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.2ms) 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"]] SQL (0.2ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.7ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-29 14:31:57.186309"], ["updated_at", "2015-10-29 14:31:57.186309"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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:57.194136"], ["updated_at", "2015-10-29 14:31:57.194136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.2ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:31:57.220635"], ["updated_at", "2015-10-29 14:31:57.220635"]]  (0.2ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.3ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (2.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:29.343923"], ["updated_at", "2015-10-29 14:32:29.343923"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.359608"], ["updated_at", "2015-10-29 14:32:29.359608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) 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.2ms) Completed 200 OK in 17ms (Views: 11.9ms | ActiveRecord: 0.0ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 14:32:29.399536"], ["updated_at", "2015-10-29 14:32:29.399536"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:32:29.408884"], ["updated_at", "2015-10-29 14:32:29.408884"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.4ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.424748"], ["updated_at", "2015-10-29 14:32:29.424748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.3ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.2ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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/index.json.jbuilder (15.3ms) Completed 200 OK in 17ms (Views: 15.4ms | ActiveRecord: 0.7ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 14:32:29.452060"], ["updated_at", "2015-10-29 14:32:29.452060"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:32:29.467256"], ["updated_at", "2015-10-29 14:32:29.467256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.485410"], ["updated_at", "2015-10-29 14:32:29.485410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.2ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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 (5.5ms) Completed 200 OK in 15ms (Views: 8.9ms | ActiveRecord: 0.3ms)  (1.8ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 14:32:29.517605"], ["updated_at", "2015-10-29 14:32:29.517605"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:32:29.528520"], ["updated_at", "2015-10-29 14:32:29.528520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.544079"], ["updated_at", "2015-10-29 14:32:29.544079"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] SQL (0.9ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (1.1ms) 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"]]  (0.7ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:29.588812"], ["updated_at", "2015-10-29 14:32:29.588812"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.592126"], ["updated_at", "2015-10-29 14:32:29.592126"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.3ms) 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"]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.4ms) Wupee::Notification Load (0.2ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:29.796431"], ["updated_at", "2015-10-29 14:32:29.796431"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.807259"], ["updated_at", "2015-10-29 14:32:29.807259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 14:32:29.816174"], ["updated_at", "2015-10-29 14:32:29.816174"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:32:29.818913"], ["updated_at", "2015-10-29 14:32:29.818913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.827630"], ["updated_at", "2015-10-29 14:32:29.827630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (2.1ms) SQL (0.2ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user7

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (10.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 14:32:29.866734"], ["updated_at", "2015-10-29 14:32:29.866734"]]  (2.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:32:29.892717"], ["updated_at", "2015-10-29 14:32:29.892717"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.906721"], ["updated_at", "2015-10-29 14:32:29.906721"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user8

message body

 (1.5ms) rollback transaction  (0.5ms) begin transaction  (0.6ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 14:32:29.926057"], ["updated_at", "2015-10-29 14:32:29.926057"]]  (0.5ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:32:29.931783"], ["updated_at", "2015-10-29 14:32:29.931783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.6ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.6ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.5ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.959821"], ["updated_at", "2015-10-29 14:32:29.959821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user9

message body

 (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 14:32:29.969533"], ["updated_at", "2015-10-29 14:32:29.969533"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:32:29.972692"], ["updated_at", "2015-10-29 14:32:29.972692"]]  (0.6ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.991325"], ["updated_at", "2015-10-29 14:32:29.991325"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_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 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: 7bit

user10

message body

 (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:32:30.001611"], ["updated_at", "2015-10-29 14:32:30.001611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.3ms) 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"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.028080"], ["updated_at", "2015-10-29 14:32:30.028080"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.4ms) 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"]] SQL (0.3ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:32:30.043642"], ["updated_at", "2015-10-29 14:32:30.043642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.5ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:30.060556"], ["updated_at", "2015-10-29 14:32:30.060556"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.073427"], ["updated_at", "2015-10-29 14:32:30.073427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:32:30.083853"], ["updated_at", "2015-10-29 14:32:30.083853"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.085897"], ["updated_at", "2015-10-29 14:32:30.085897"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (1.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:32:30.091370"], ["updated_at", "2015-10-29 14:32:30.091370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:30.108198"], ["updated_at", "2015-10-29 14:32:30.108198"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.114982"], ["updated_at", "2015-10-29 14:32:30.114982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 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 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:32:30.127928"], ["updated_at", "2015-10-29 14:32:30.127928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.134842"], ["updated_at", "2015-10-29 14:32:30.134842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (1.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:32:30.142990"], ["updated_at", "2015-10-29 14:32:30.142990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:30.153429"], ["updated_at", "2015-10-29 14:32:30.153429"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.159095"], ["updated_at", "2015-10-29 14:32:30.159095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.166574"], ["updated_at", "2015-10-29 14:32:30.166574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.2ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user16

message body

 (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:32:30.187306"], ["updated_at", "2015-10-29 14:32:30.187306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (1.3ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:30.208559"], ["updated_at", "2015-10-29 14:32:30.208559"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.214291"], ["updated_at", "2015-10-29 14:32:30.214291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.217667"], ["updated_at", "2015-10-29 14:32:30.217667"]]  (0.1ms) 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] Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["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] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [2ebf996c-f171-4c6e-be03-366dae317442] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [2ebf996c-f171-4c6e-be03-366dae317442] Wupee::NotificationType Load (0.0ms) 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] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user17

message body

[ActiveJob] [ActionMailer::DeliveryJob] [2ebf996c-f171-4c6e-be03-366dae317442] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.14ms  (2.3ms) rollback transaction  (0.2ms) begin transaction  (0.5ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:32:30.263752"], ["updated_at", "2015-10-29 14:32:30.263752"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:30.277651"], ["updated_at", "2015-10-29 14:32:30.277651"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.287101"], ["updated_at", "2015-10-29 14:32:30.287101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-29 14:32:30.300216"], ["updated_at", "2015-10-29 14:32:30.300216"]]  (0.5ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (1.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.9ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:32:30.331114"], ["updated_at", "2015-10-29 14:32:30.331114"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (2.8ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.6ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:30.354601"], ["updated_at", "2015-10-29 14:32:30.354601"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.362008"], ["updated_at", "2015-10-29 14:32:30.362008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (2.9ms) SELECT 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 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:32:30.387607"], ["updated_at", "2015-10-29 14:32:30.387607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.391690"], ["updated_at", "2015-10-29 14:32:30.391690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-29 14:32:30.405654"], ["updated_at", "2015-10-29 14:32:30.405654"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-29 14:32:30.423817"], ["updated_at", "2015-10-29 14:32:30.423817"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.3ms) 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.429568"], ["updated_at", "2015-10-29 14:32:30.429568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:32:30.445899"], ["updated_at", "2015-10-29 14:32:30.445899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:30.456330"], ["updated_at", "2015-10-29 14:32:30.456330"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.470239"], ["updated_at", "2015-10-29 14:32:30.470239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:32:30.482878"], ["updated_at", "2015-10-29 14:32:30.482878"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.484946"], ["updated_at", "2015-10-29 14:32:30.484946"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 2], ["attached_object_type", "Message"]] SQL (0.2ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:32:30.495365"], ["updated_at", "2015-10-29 14:32:30.495365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) 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"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:30.512332"], ["updated_at", "2015-10-29 14:32:30.512332"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.8ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.521790"], ["updated_at", "2015-10-29 14:32:30.521790"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.4ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.5ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-29 14:32:30.545637"], ["updated_at", "2015-10-29 14:32:30.545637"]]  (0.6ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-29 14:32:30.559653"], ["updated_at", "2015-10-29 14:32:30.559653"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 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 SQL (0.2ms) 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.562746"], ["updated_at", "2015-10-29 14:32:30.562746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:32:30.578004"], ["updated_at", "2015-10-29 14:32:30.578004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:30.586923"], ["updated_at", "2015-10-29 14:32:30.586923"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.598436"], ["updated_at", "2015-10-29 14:32:30.598436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.6ms) SELECT 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 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:32:30.619751"], ["updated_at", "2015-10-29 14:32:30.619751"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (2.1ms) rollback transaction  (0.3ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (3.0ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-29 14:32:30.643509"], ["updated_at", "2015-10-29 14:32:30.643509"]]  (0.9ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.9ms) 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"]]  (0.4ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.6ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-10-29 14:32:30.682185"], ["updated_at", "2015-10-29 14:32:30.682185"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.685920"], ["updated_at", "2015-10-29 14:32:30.685920"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.5ms) rollback transaction  (0.5ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:30.716966"], ["updated_at", "2015-10-29 14:32:30.716966"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.731985"], ["updated_at", "2015-10-29 14:32:30.731985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user34@sleede.com"], ["name", "user34"], ["created_at", "2015-10-29 14:32:30.742666"], ["updated_at", "2015-10-29 14:32:30.742666"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:30.763759"], ["updated_at", "2015-10-29 14:32:30.763759"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.5ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.768473"], ["updated_at", "2015-10-29 14:32:30.768473"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.6ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:30.807968"], ["updated_at", "2015-10-29 14:32:30.807968"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.811149"], ["updated_at", "2015-10-29 14:32:30.811149"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.2ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.2ms) 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"]] SQL (0.2ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-29 14:32:30.837161"], ["updated_at", "2015-10-29 14:32:30.837161"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.6ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.5ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.847313"], ["updated_at", "2015-10-29 14:32:30.847313"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.4ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:30.869017"], ["updated_at", "2015-10-29 14:32:30.869017"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.3ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.7ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:45.376189"], ["updated_at", "2015-10-29 14:33:45.376189"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.6ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (1.0ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.394340"], ["updated_at", "2015-10-29 14:33:45.394340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) 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 18ms (Views: 11.4ms | ActiveRecord: 0.0ms)  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 14:33:45.434254"], ["updated_at", "2015-10-29 14:33:45.434254"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:45.438661"], ["updated_at", "2015-10-29 14:33:45.438661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.3ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.450993"], ["updated_at", "2015-10-29 14:33:45.450993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.3ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.4ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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.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)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 14:33:45.483601"], ["updated_at", "2015-10-29 14:33:45.483601"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:45.487051"], ["updated_at", "2015-10-29 14:33:45.487051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.5ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.511743"], ["updated_at", "2015-10-29 14:33:45.511743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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.5ms) Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.3ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 14:33:45.529102"], ["updated_at", "2015-10-29 14:33:45.529102"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:45.533890"], ["updated_at", "2015-10-29 14:33:45.533890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.6ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.6ms) 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"]]  (0.6ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.567627"], ["updated_at", "2015-10-29 14:33:45.567627"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.2ms) 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]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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)  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:45.596471"], ["updated_at", "2015-10-29 14:33:45.596471"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.599304"], ["updated_at", "2015-10-29 14:33:45.599304"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.8ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.3ms) 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"]] SQL (0.2ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 5ms (ActiveRecord: 0.5ms) Wupee::Notification Load (0.2ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:45.806136"], ["updated_at", "2015-10-29 14:33:45.806136"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.814479"], ["updated_at", "2015-10-29 14:33:45.814479"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 14:33:45.824461"], ["updated_at", "2015-10-29 14:33:45.824461"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:45.826931"], ["updated_at", "2015-10-29 14:33:45.826931"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.833562"], ["updated_at", "2015-10-29 14:33:45.833562"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (2.4ms) SQL (0.2ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user7

message body

 (0.9ms) rollback transaction  (0.2ms) begin transaction  (0.6ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 14:33:45.881486"], ["updated_at", "2015-10-29 14:33:45.881486"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:45.890963"], ["updated_at", "2015-10-29 14:33:45.890963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.899501"], ["updated_at", "2015-10-29 14:33:45.899501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user8

message body

 (2.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 14:33:45.914835"], ["updated_at", "2015-10-29 14:33:45.914835"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:45.920813"], ["updated_at", "2015-10-29 14:33:45.920813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (1.4ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.6ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.947228"], ["updated_at", "2015-10-29 14:33:45.947228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user9

message body

 (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 14:33:45.958930"], ["updated_at", "2015-10-29 14:33:45.958930"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:45.965071"], ["updated_at", "2015-10-29 14:33:45.965071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.983654"], ["updated_at", "2015-10-29 14:33:45.983654"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user10

message body

 (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:45.995988"], ["updated_at", "2015-10-29 14:33:45.995988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (2.9ms) 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"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.9ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.7ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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.026922"], ["updated_at", "2015-10-29 14:33:46.026922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.2ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.5ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:46.045214"], ["updated_at", "2015-10-29 14:33:46.045214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:46.060303"], ["updated_at", "2015-10-29 14:33:46.060303"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.070206"], ["updated_at", "2015-10-29 14:33:46.070206"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:46.084412"], ["updated_at", "2015-10-29 14:33:46.084412"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.087179"], ["updated_at", "2015-10-29 14:33:46.087179"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:46.091272"], ["updated_at", "2015-10-29 14:33:46.091272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:46.110951"], ["updated_at", "2015-10-29 14:33:46.110951"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (1.5ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.120988"], ["updated_at", "2015-10-29 14:33:46.120988"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:46.135551"], ["updated_at", "2015-10-29 14:33:46.135551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.141235"], ["updated_at", "2015-10-29 14:33:46.141235"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:46.145237"], ["updated_at", "2015-10-29 14:33:46.145237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:46.150184"], ["updated_at", "2015-10-29 14:33:46.150184"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.159665"], ["updated_at", "2015-10-29 14:33:46.159665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.162300"], ["updated_at", "2015-10-29 14:33:46.162300"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user16

message body

 (1.2ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:46.173870"], ["updated_at", "2015-10-29 14:33:46.173870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:46.192471"], ["updated_at", "2015-10-29 14:33:46.192471"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.199161"], ["updated_at", "2015-10-29 14:33:46.199161"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.201349"], ["updated_at", "2015-10-29 14:33:46.201349"]]  (0.0ms) 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] Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["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] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [22d24601-ed67-4a36-a0e6-6c825fa4ca75] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [22d24601-ed67-4a36-a0e6-6c825fa4ca75] Wupee::NotificationType Load (0.0ms) 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] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user17

message body

[ActiveJob] [ActionMailer::DeliveryJob] [22d24601-ed67-4a36-a0e6-6c825fa4ca75] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.8ms  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:46.238575"], ["updated_at", "2015-10-29 14:33:46.238575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.8ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:46.250876"], ["updated_at", "2015-10-29 14:33:46.250876"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.254474"], ["updated_at", "2015-10-29 14:33:46.254474"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-29 14:33:46.267717"], ["updated_at", "2015-10-29 14:33:46.267717"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.4ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:46.297364"], ["updated_at", "2015-10-29 14:33:46.297364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:46.308540"], ["updated_at", "2015-10-29 14:33:46.308540"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.314508"], ["updated_at", "2015-10-29 14:33:46.314508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 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 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:46.325156"], ["updated_at", "2015-10-29 14:33:46.325156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.327593"], ["updated_at", "2015-10-29 14:33:46.327593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (2.0ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-29 14:33:46.339484"], ["updated_at", "2015-10-29 14:33:46.339484"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (4.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.7ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-29 14:33:46.363641"], ["updated_at", "2015-10-29 14:33:46.363641"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.365958"], ["updated_at", "2015-10-29 14:33:46.365958"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:46.376459"], ["updated_at", "2015-10-29 14:33:46.376459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (3.7ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:46.391451"], ["updated_at", "2015-10-29 14:33:46.391451"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.399644"], ["updated_at", "2015-10-29 14:33:46.399644"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 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 SQL (0.7ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:46.415364"], ["updated_at", "2015-10-29 14:33:46.415364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.420184"], ["updated_at", "2015-10-29 14:33:46.420184"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 2], ["attached_object_type", "Message"]] SQL (0.0ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:46.429008"], ["updated_at", "2015-10-29 14:33:46.429008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:46.441742"], ["updated_at", "2015-10-29 14:33:46.441742"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.449008"], ["updated_at", "2015-10-29 14:33:46.449008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.9ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-29 14:33:46.480296"], ["updated_at", "2015-10-29 14:33:46.480296"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.7ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-29 14:33:46.499814"], ["updated_at", "2015-10-29 14:33:46.499814"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.4ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 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 SQL (0.2ms) 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.508103"], ["updated_at", "2015-10-29 14:33:46.508103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:46.515120"], ["updated_at", "2015-10-29 14:33:46.515120"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.6ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:46.529126"], ["updated_at", "2015-10-29 14:33:46.529126"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.531851"], ["updated_at", "2015-10-29 14:33:46.531851"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:46.540462"], ["updated_at", "2015-10-29 14:33:46.540462"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.9ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-29 14:33:46.556756"], ["updated_at", "2015-10-29 14:33:46.556756"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-10-29 14:33:46.570579"], ["updated_at", "2015-10-29 14:33:46.570579"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 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 SQL (0.3ms) 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.582566"], ["updated_at", "2015-10-29 14:33:46.582566"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.0ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:46.594937"], ["updated_at", "2015-10-29 14:33:46.594937"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.602962"], ["updated_at", "2015-10-29 14:33:46.602962"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.6ms) 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  (1.7ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user34@sleede.com"], ["name", "user34"], ["created_at", "2015-10-29 14:33:46.620164"], ["updated_at", "2015-10-29 14:33:46.620164"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.9ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.4ms) 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  (1.2ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:46.668049"], ["updated_at", "2015-10-29 14:33:46.668049"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (4.6ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.684605"], ["updated_at", "2015-10-29 14:33:46.684605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.6ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:46.724049"], ["updated_at", "2015-10-29 14:33:46.724049"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.728312"], ["updated_at", "2015-10-29 14:33:46.728312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.2ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-29 14:33:46.753181"], ["updated_at", "2015-10-29 14:33:46.753181"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (1.0ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.758515"], ["updated_at", "2015-10-29 14:33:46.758515"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.0ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:46.783407"], ["updated_at", "2015-10-29 14:33:46.783407"]]  (0.3ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:55.720276"], ["updated_at", "2015-10-29 14:33:55.720276"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.731722"], ["updated_at", "2015-10-29 14:33:55.731722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) 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.2ms) Completed 200 OK in 14ms (Views: 9.0ms | ActiveRecord: 0.0ms)  (8.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 14:33:55.779508"], ["updated_at", "2015-10-29 14:33:55.779508"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:55.782651"], ["updated_at", "2015-10-29 14:33:55.782651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.794432"], ["updated_at", "2015-10-29 14:33:55.794432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.4ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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/index.json.jbuilder (16.5ms) Completed 200 OK in 19ms (Views: 16.7ms | ActiveRecord: 0.6ms)  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 14:33:55.824930"], ["updated_at", "2015-10-29 14:33:55.824930"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:55.827548"], ["updated_at", "2015-10-29 14:33:55.827548"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.3ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.849449"], ["updated_at", "2015-10-29 14:33:55.849449"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.2ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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.5ms) Completed 200 OK in 9ms (Views: 6.2ms | ActiveRecord: 0.3ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 14:33:55.865489"], ["updated_at", "2015-10-29 14:33:55.865489"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:55.870473"], ["updated_at", "2015-10-29 14:33:55.870473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.890330"], ["updated_at", "2015-10-29 14:33:55.890330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.3ms) 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]] SQL (0.2ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Message Load (0.2ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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)  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.6ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:55.928014"], ["updated_at", "2015-10-29 14:33:55.928014"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.933415"], ["updated_at", "2015-10-29 14:33:55.933415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.2ms) 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"]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.2ms) Wupee::Notification Load (0.3ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.9ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:56.109186"], ["updated_at", "2015-10-29 14:33:56.109186"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.116653"], ["updated_at", "2015-10-29 14:33:56.116653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (9.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 14:33:56.135705"], ["updated_at", "2015-10-29 14:33:56.135705"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:56.142642"], ["updated_at", "2015-10-29 14:33:56.142642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.157206"], ["updated_at", "2015-10-29 14:33:56.157206"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (2.9ms) SQL (0.2ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user7

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 14:33:56.197641"], ["updated_at", "2015-10-29 14:33:56.197641"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:56.201681"], ["updated_at", "2015-10-29 14:33:56.201681"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) 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.219146"], ["updated_at", "2015-10-29 14:33:56.219146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user8

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.5ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 14:33:56.235346"], ["updated_at", "2015-10-29 14:33:56.235346"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:56.239679"], ["updated_at", "2015-10-29 14:33:56.239679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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.255954"], ["updated_at", "2015-10-29 14:33:56.255954"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user9

message body

 (1.4ms) rollback transaction  (0.3ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 14:33:56.275093"], ["updated_at", "2015-10-29 14:33:56.275093"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:56.282796"], ["updated_at", "2015-10-29 14:33:56.282796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.297582"], ["updated_at", "2015-10-29 14:33:56.297582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_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 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: 7bit

user10

message body

 (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:56.307127"], ["updated_at", "2015-10-29 14:33:56.307127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.321406"], ["updated_at", "2015-10-29 14:33:56.321406"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.4ms) 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"]] SQL (0.2ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:56.341967"], ["updated_at", "2015-10-29 14:33:56.341967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:56.347255"], ["updated_at", "2015-10-29 14:33:56.347255"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.350672"], ["updated_at", "2015-10-29 14:33:56.350672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:56.360444"], ["updated_at", "2015-10-29 14:33:56.360444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.363880"], ["updated_at", "2015-10-29 14:33:56.363880"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:56.367697"], ["updated_at", "2015-10-29 14:33:56.367697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:56.375118"], ["updated_at", "2015-10-29 14:33:56.375118"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.380601"], ["updated_at", "2015-10-29 14:33:56.380601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.4ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:56.393210"], ["updated_at", "2015-10-29 14:33:56.393210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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.399734"], ["updated_at", "2015-10-29 14:33:56.399734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:56.407071"], ["updated_at", "2015-10-29 14:33:56.407071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:56.411829"], ["updated_at", "2015-10-29 14:33:56.411829"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.414979"], ["updated_at", "2015-10-29 14:33:56.414979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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.419970"], ["updated_at", "2015-10-29 14:33:56.419970"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user16

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:56.432083"], ["updated_at", "2015-10-29 14:33:56.432083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:56.436614"], ["updated_at", "2015-10-29 14:33:56.436614"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.443979"], ["updated_at", "2015-10-29 14:33:56.443979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.447103"], ["updated_at", "2015-10-29 14:33:56.447103"]]  (0.1ms) 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] Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [f32de27c-4ac7-43fc-a856-254afc6d21b1] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [f32de27c-4ac7-43fc-a856-254afc6d21b1] Wupee::NotificationType Load (0.0ms) 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] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user17

message body

[ActiveJob] [ActionMailer::DeliveryJob] [f32de27c-4ac7-43fc-a856-254afc6d21b1] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.55ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:56.484127"], ["updated_at", "2015-10-29 14:33:56.484127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:56.492110"], ["updated_at", "2015-10-29 14:33:56.492110"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.496808"], ["updated_at", "2015-10-29 14:33:56.496808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-29 14:33:56.509390"], ["updated_at", "2015-10-29 14:33:56.509390"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.6ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.6ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:56.533237"], ["updated_at", "2015-10-29 14:33:56.533237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:56.542242"], ["updated_at", "2015-10-29 14:33:56.542242"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.545115"], ["updated_at", "2015-10-29 14:33:56.545115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.7ms) SELECT 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 SQL (1.4ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:56.573007"], ["updated_at", "2015-10-29 14:33:56.573007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.578404"], ["updated_at", "2015-10-29 14:33:56.578404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-29 14:33:56.586786"], ["updated_at", "2015-10-29 14:33:56.586786"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-29 14:33:56.593604"], ["updated_at", "2015-10-29 14:33:56.593604"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 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 SQL (0.4ms) 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.597432"], ["updated_at", "2015-10-29 14:33:56.597432"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:56.616812"], ["updated_at", "2015-10-29 14:33:56.616812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:56.621726"], ["updated_at", "2015-10-29 14:33:56.621726"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.624255"], ["updated_at", "2015-10-29 14:33:56.624255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:56.630156"], ["updated_at", "2015-10-29 14:33:56.630156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.632629"], ["updated_at", "2015-10-29 14:33:56.632629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 2], ["attached_object_type", "Message"]] SQL (0.5ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:56.647915"], ["updated_at", "2015-10-29 14:33:56.647915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:56.659651"], ["updated_at", "2015-10-29 14:33:56.659651"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (1.0ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.668447"], ["updated_at", "2015-10-29 14:33:56.668447"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-29 14:33:56.692743"], ["updated_at", "2015-10-29 14:33:56.692743"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.5ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-29 14:33:56.714287"], ["updated_at", "2015-10-29 14:33:56.714287"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.718003"], ["updated_at", "2015-10-29 14:33:56.718003"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:56.725540"], ["updated_at", "2015-10-29 14:33:56.725540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:56.731308"], ["updated_at", "2015-10-29 14:33:56.731308"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.5ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.738767"], ["updated_at", "2015-10-29 14:33:56.738767"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:56.753002"], ["updated_at", "2015-10-29 14:33:56.753002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (2.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-29 14:33:56.769813"], ["updated_at", "2015-10-29 14:33:56.769813"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-10-29 14:33:56.788854"], ["updated_at", "2015-10-29 14:33:56.788854"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.795029"], ["updated_at", "2015-10-29 14:33:56.795029"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:56.809807"], ["updated_at", "2015-10-29 14:33:56.809807"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.815628"], ["updated_at", "2015-10-29 14:33:56.815628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.3ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user34@sleede.com"], ["name", "user34"], ["created_at", "2015-10-29 14:33:56.832608"], ["updated_at", "2015-10-29 14:33:56.832608"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:56.856149"], ["updated_at", "2015-10-29 14:33:56.856149"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.7ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.865497"], ["updated_at", "2015-10-29 14:33:56.865497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:56.879482"], ["updated_at", "2015-10-29 14:33:56.879482"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.5ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.887906"], ["updated_at", "2015-10-29 14:33:56.887906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.0ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-29 14:33:56.908012"], ["updated_at", "2015-10-29 14:33:56.908012"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.910883"], ["updated_at", "2015-10-29 14:33:56.910883"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.0ms) 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"]] SQL (0.2ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.9ms) rollback transaction  (0.7ms) begin transaction  (0.3ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (1.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:56.932192"], ["updated_at", "2015-10-29 14:33:56.932192"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.5ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.3ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:39.732212"], ["updated_at", "2015-10-29 14:37:39.732212"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (1.0ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.757269"], ["updated_at", "2015-10-29 14:37:39.757269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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"]]  (0.1ms) 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 21ms (Views: 14.1ms | ActiveRecord: 0.0ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 14:37:39.804226"], ["updated_at", "2015-10-29 14:37:39.804226"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:37:39.809634"], ["updated_at", "2015-10-29 14:37:39.809634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.821108"], ["updated_at", "2015-10-29 14:37:39.821108"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (1.7ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.2ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.4ms) 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/index.json.jbuilder (26.0ms) Completed 200 OK in 28ms (Views: 24.3ms | ActiveRecord: 2.3ms)  (1.7ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 14:37:39.870267"], ["updated_at", "2015-10-29 14:37:39.870267"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:37:39.876658"], ["updated_at", "2015-10-29 14:37:39.876658"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.888072"], ["updated_at", "2015-10-29 14:37:39.888072"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.2ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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 (5.2ms) Completed 200 OK in 11ms (Views: 8.4ms | ActiveRecord: 0.4ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 14:37:39.916817"], ["updated_at", "2015-10-29 14:37:39.916817"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:37:39.919867"], ["updated_at", "2015-10-29 14:37:39.919867"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.3ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.952885"], ["updated_at", "2015-10-29 14:37:39.952885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.3ms) 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]] SQL (0.5ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:39.989094"], ["updated_at", "2015-10-29 14:37:39.989094"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.992278"], ["updated_at", "2015-10-29 14:37:39.992278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.1ms) 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"]] SQL (0.0ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:40.192054"], ["updated_at", "2015-10-29 14:37:40.192054"]]  (0.5ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.201565"], ["updated_at", "2015-10-29 14:37:40.201565"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 14:37:40.210975"], ["updated_at", "2015-10-29 14:37:40.210975"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:37:40.213420"], ["updated_at", "2015-10-29 14:37:40.213420"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (1.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.227556"], ["updated_at", "2015-10-29 14:37:40.227556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.9ms) SQL (0.4ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user7

message body

 (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 14:37:40.276683"], ["updated_at", "2015-10-29 14:37:40.276683"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:37:40.282636"], ["updated_at", "2015-10-29 14:37:40.282636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.301828"], ["updated_at", "2015-10-29 14:37:40.301828"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user8

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 14:37:40.309787"], ["updated_at", "2015-10-29 14:37:40.309787"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:37:40.315834"], ["updated_at", "2015-10-29 14:37:40.315834"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.4ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.345447"], ["updated_at", "2015-10-29 14:37:40.345447"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user9

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 14:37:40.356198"], ["updated_at", "2015-10-29 14:37:40.356198"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (4.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:37:40.359446"], ["updated_at", "2015-10-29 14:37:40.359446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.6ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (1.0ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.377331"], ["updated_at", "2015-10-29 14:37:40.377331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user10

message body

 (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:37:40.387549"], ["updated_at", "2015-10-29 14:37:40.387549"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) 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"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.6ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.432073"], ["updated_at", "2015-10-29 14:37:40.432073"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:37:40.443339"], ["updated_at", "2015-10-29 14:37:40.443339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.8ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:40.452330"], ["updated_at", "2015-10-29 14:37:40.452330"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.455082"], ["updated_at", "2015-10-29 14:37:40.455082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 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 SQL (0.3ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:37:40.468380"], ["updated_at", "2015-10-29 14:37:40.468380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.470696"], ["updated_at", "2015-10-29 14:37:40.470696"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (1.0ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:37:40.478032"], ["updated_at", "2015-10-29 14:37:40.478032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:40.489241"], ["updated_at", "2015-10-29 14:37:40.489241"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.5ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.498917"], ["updated_at", "2015-10-29 14:37:40.498917"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:37:40.519312"], ["updated_at", "2015-10-29 14:37:40.519312"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.521400"], ["updated_at", "2015-10-29 14:37:40.521400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:37:40.527767"], ["updated_at", "2015-10-29 14:37:40.527767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:40.533439"], ["updated_at", "2015-10-29 14:37:40.533439"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.540634"], ["updated_at", "2015-10-29 14:37:40.540634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.547047"], ["updated_at", "2015-10-29 14:37:40.547047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user16

message body

 (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:37:40.556815"], ["updated_at", "2015-10-29 14:37:40.556815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:40.567527"], ["updated_at", "2015-10-29 14:37:40.567527"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.575909"], ["updated_at", "2015-10-29 14:37:40.575909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.3ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.581852"], ["updated_at", "2015-10-29 14:37:40.581852"]]  (0.1ms) 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] Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["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] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [3bf132e4-07b6-4e5a-9d11-b8b5cd5fc06e] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [3bf132e4-07b6-4e5a-9d11-b8b5cd5fc06e] Wupee::NotificationType Load (0.0ms) 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] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user17

message body

[ActiveJob] [ActionMailer::DeliveryJob] [3bf132e4-07b6-4e5a-9d11-b8b5cd5fc06e] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.21ms  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:37:40.620874"], ["updated_at", "2015-10-29 14:37:40.620874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:40.628355"], ["updated_at", "2015-10-29 14:37:40.628355"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.636265"], ["updated_at", "2015-10-29 14:37:40.636265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-29 14:37:40.654482"], ["updated_at", "2015-10-29 14:37:40.654482"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.2ms) begin transaction  (0.4ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:37:40.679451"], ["updated_at", "2015-10-29 14:37:40.679451"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:40.690700"], ["updated_at", "2015-10-29 14:37:40.690700"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.696558"], ["updated_at", "2015-10-29 14:37:40.696558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:37:40.709509"], ["updated_at", "2015-10-29 14:37:40.709509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.712168"], ["updated_at", "2015-10-29 14:37:40.712168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-29 14:37:40.721992"], ["updated_at", "2015-10-29 14:37:40.721992"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-29 14:37:40.735923"], ["updated_at", "2015-10-29 14:37:40.735923"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.4ms) 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.740195"], ["updated_at", "2015-10-29 14:37:40.740195"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:37:40.757445"], ["updated_at", "2015-10-29 14:37:40.757445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.6ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:40.764866"], ["updated_at", "2015-10-29 14:37:40.764866"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.771054"], ["updated_at", "2015-10-29 14:37:40.771054"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:37:40.782836"], ["updated_at", "2015-10-29 14:37:40.782836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.787057"], ["updated_at", "2015-10-29 14:37:40.787057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 2], ["attached_object_type", "Message"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:37:40.798947"], ["updated_at", "2015-10-29 14:37:40.798947"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:40.804059"], ["updated_at", "2015-10-29 14:37:40.804059"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.5ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.814107"], ["updated_at", "2015-10-29 14:37:40.814107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.3ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-29 14:37:40.839607"], ["updated_at", "2015-10-29 14:37:40.839607"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-29 14:37:40.854156"], ["updated_at", "2015-10-29 14:37:40.854156"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 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 SQL (0.5ms) 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.857269"], ["updated_at", "2015-10-29 14:37:40.857269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:37:40.872912"], ["updated_at", "2015-10-29 14:37:40.872912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:40.881863"], ["updated_at", "2015-10-29 14:37:40.881863"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.888227"], ["updated_at", "2015-10-29 14:37:40.888227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.7ms) SELECT 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 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:37:40.903009"], ["updated_at", "2015-10-29 14:37:40.903009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-29 14:37:40.913283"], ["updated_at", "2015-10-29 14:37:40.913283"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-10-29 14:37:40.938150"], ["updated_at", "2015-10-29 14:37:40.938150"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.941480"], ["updated_at", "2015-10-29 14:37:40.941480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.0ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:40.954521"], ["updated_at", "2015-10-29 14:37:40.954521"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.963392"], ["updated_at", "2015-10-29 14:37:40.963392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.2ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user34@sleede.com"], ["name", "user34"], ["created_at", "2015-10-29 14:37:40.972743"], ["updated_at", "2015-10-29 14:37:40.972743"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (2.2ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.7ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:41.008329"], ["updated_at", "2015-10-29 14:37:41.008329"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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:41.014898"], ["updated_at", "2015-10-29 14:37:41.014898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:41.042177"], ["updated_at", "2015-10-29 14:37:41.042177"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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:41.048305"], ["updated_at", "2015-10-29 14:37:41.048305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.2ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.2ms) 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"]] SQL (0.2ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-29 14:37:41.067962"], ["updated_at", "2015-10-29 14:37:41.067962"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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:41.070488"], ["updated_at", "2015-10-29 14:37:41.070488"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.2ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.3ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.2ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.5ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (1.8ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:41.093520"], ["updated_at", "2015-10-29 14:37:41.093520"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (1.4ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (1.2ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.9ms) 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "idx_wupee_notif_type_config_on_notification_type_id" ON "wupee_notification_type_configurations" ("notification_type_id")  (0.1ms) 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'  (0.7ms) CREATE INDEX "idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id" ON "wupee_notification_type_configurations" ("receiver_type", "receiver_id")  (1.6ms) CREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "index_wupee_notification_types_on_name" ON "wupee_notification_types" ("name")  (3.3ms) 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)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20151029150402')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20151029150400')  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20151029150401') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUsers (20150213150625)  (0.1ms) begin transaction  (0.6ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213150625"]]  (1.0ms) commit transaction Migrating to CreateMessages (20150213152846)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213152846"]]  (0.7ms) commit transaction Migrating to CreateWupeeNotificationTypeConfigurations (20151029113101)  (0.1ms) begin transaction  (0.5ms) 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)  (0.3ms) CREATE INDEX "idx_wupee_notif_type_config_on_notification_type_id" ON "wupee_notification_type_configurations" ("notification_type_id")  (0.5ms) 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'  (0.2ms) CREATE INDEX "idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id" ON "wupee_notification_type_configurations" ("receiver_type", "receiver_id") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029113101"]]  (1.1ms) commit transaction Migrating to CreateWupeeNotifications (20151029113107)  (0.1ms) begin transaction  (1.0ms) 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)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029113107"]]  (1.5ms) commit transaction Migrating to CreateWupeeNotificationTypes (20151029113122)  (0.1ms) begin transaction  (0.6ms) CREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "index_wupee_notification_types_on_name" ON "wupee_notification_types" ("name") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029113122"]]  (1.1ms) commit transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) 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'  (0.1ms)  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'   (0.1ms) 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'  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUsers (20150213150625)  (0.2ms) begin transaction  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (2.7ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213150625"]]  (1.4ms) commit transaction Migrating to CreateMessages (20150213152846)  (0.1ms) begin transaction  (0.8ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213152846"]]  (1.2ms) commit transaction Migrating to CreateWupeeNotificationTypeConfigurations (20151029113101)  (0.2ms) begin transaction  (1.1ms) 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)  (0.7ms) CREATE INDEX "idx_wupee_notif_type_config_on_notification_type_id" ON "wupee_notification_type_configurations" ("notification_type_id")  (1.0ms) 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'  (0.2ms) CREATE INDEX "idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id" ON "wupee_notification_type_configurations" ("receiver_type", "receiver_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029113101"]]  (2.0ms) commit transaction Migrating to CreateWupeeNotifications (20151029113107)  (0.1ms) begin transaction  (0.7ms) 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)  SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029113107"]]  (1.0ms) commit transaction Migrating to CreateWupeeNotificationTypes (20151029113122)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.5ms) CREATE UNIQUE INDEX "index_wupee_notification_types_on_name" ON "wupee_notification_types" ("name") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029113122"]]  (2.0ms) commit transaction ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) 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'  (0.7ms)  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'   (0.5ms) 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' ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.8ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.4ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:14.358996"], ["updated_at", "2015-10-29 15:52:14.358996"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.6ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.7ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.379853"], ["updated_at", "2015-10-29 15:52:14.379853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) 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.2ms) Completed 200 OK in 20ms (Views: 12.7ms | ActiveRecord: 0.0ms)  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 15:52:14.423004"], ["updated_at", "2015-10-29 15:52:14.423004"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 15:52:14.426234"], ["updated_at", "2015-10-29 15:52:14.426234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.442844"], ["updated_at", "2015-10-29 15:52:14.442844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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.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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 15:52:14.472684"], ["updated_at", "2015-10-29 15:52:14.472684"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 15:52:14.476285"], ["updated_at", "2015-10-29 15:52:14.476285"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.3ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.3ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.501048"], ["updated_at", "2015-10-29 15:52:14.501048"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.3ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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 (4.8ms) Completed 200 OK in 16ms (Views: 10.9ms | ActiveRecord: 0.4ms)  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 15:52:14.527928"], ["updated_at", "2015-10-29 15:52:14.527928"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 15:52:14.530996"], ["updated_at", "2015-10-29 15:52:14.530996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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.545551"], ["updated_at", "2015-10-29 15:52:14.545551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] SQL (0.2ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Message Load (0.4ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.2ms) 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)  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (1.3ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:14.593565"], ["updated_at", "2015-10-29 15:52:14.593565"]]  (0.4ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.604128"], ["updated_at", "2015-10-29 15:52:14.604128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.1ms) 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"]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:14.816102"], ["updated_at", "2015-10-29 15:52:14.816102"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.820756"], ["updated_at", "2015-10-29 15:52:14.820756"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (4.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 15:52:14.838829"], ["updated_at", "2015-10-29 15:52:14.838829"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 15:52:14.848044"], ["updated_at", "2015-10-29 15:52:14.848044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (1.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.867171"], ["updated_at", "2015-10-29 15:52:14.867171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (4.4ms) SQL (0.4ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user7

message body

 (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 15:52:14.914780"], ["updated_at", "2015-10-29 15:52:14.914780"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 15:52:14.916834"], ["updated_at", "2015-10-29 15:52:14.916834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.6ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.932278"], ["updated_at", "2015-10-29 15:52:14.932278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.2ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user8

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 15:52:14.943215"], ["updated_at", "2015-10-29 15:52:14.943215"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 15:52:14.946748"], ["updated_at", "2015-10-29 15:52:14.946748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.962184"], ["updated_at", "2015-10-29 15:52:14.962184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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 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: 7bit

user9

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 15:52:14.972965"], ["updated_at", "2015-10-29 15:52:14.972965"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 15:52:14.978684"], ["updated_at", "2015-10-29 15:52:14.978684"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.1ms) 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"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.001847"], ["updated_at", "2015-10-29 15:52:15.001847"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) SQL (0.1ms) 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 (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: 7bit

user10

message body

 (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 15:52:15.012344"], ["updated_at", "2015-10-29 15:52:15.012344"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.037879"], ["updated_at", "2015-10-29 15:52:15.037879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.2ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 15:52:15.054921"], ["updated_at", "2015-10-29 15:52:15.054921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:15.061500"], ["updated_at", "2015-10-29 15:52:15.061500"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.068752"], ["updated_at", "2015-10-29 15:52:15.068752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 15:52:15.079522"], ["updated_at", "2015-10-29 15:52:15.079522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.083003"], ["updated_at", "2015-10-29 15:52:15.083003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 15:52:15.090070"], ["updated_at", "2015-10-29 15:52:15.090070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.5ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:15.103880"], ["updated_at", "2015-10-29 15:52:15.103880"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.109345"], ["updated_at", "2015-10-29 15:52:15.109345"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 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 SQL (0.8ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 15:52:15.130640"], ["updated_at", "2015-10-29 15:52:15.130640"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.134352"], ["updated_at", "2015-10-29 15:52:15.134352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 15:52:15.138615"], ["updated_at", "2015-10-29 15:52:15.138615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:15.145239"], ["updated_at", "2015-10-29 15:52:15.145239"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.152158"], ["updated_at", "2015-10-29 15:52:15.152158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.3ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.157384"], ["updated_at", "2015-10-29 15:52:15.157384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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 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: 7bit

user16

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 15:52:15.169757"], ["updated_at", "2015-10-29 15:52:15.169757"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:15.177257"], ["updated_at", "2015-10-29 15:52:15.177257"]]  (0.4ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.184815"], ["updated_at", "2015-10-29 15:52:15.184815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.190363"], ["updated_at", "2015-10-29 15:52:15.190363"]]  (0.1ms) 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] Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["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] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [a1fcf984-17f6-479a-9694-5002e4f12848] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [a1fcf984-17f6-479a-9694-5002e4f12848] Wupee::NotificationType Load (0.0ms) 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] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user17

message body

[ActiveJob] [ActionMailer::DeliveryJob] [a1fcf984-17f6-479a-9694-5002e4f12848] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.42ms  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 15:52:15.236519"], ["updated_at", "2015-10-29 15:52:15.236519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:15.241909"], ["updated_at", "2015-10-29 15:52:15.241909"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.248693"], ["updated_at", "2015-10-29 15:52:15.248693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-29 15:52:15.258857"], ["updated_at", "2015-10-29 15:52:15.258857"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 15:52:15.278081"], ["updated_at", "2015-10-29 15:52:15.278081"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:15.285301"], ["updated_at", "2015-10-29 15:52:15.285301"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.290422"], ["updated_at", "2015-10-29 15:52:15.290422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 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 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 15:52:15.310682"], ["updated_at", "2015-10-29 15:52:15.310682"]]  (1.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.321551"], ["updated_at", "2015-10-29 15:52:15.321551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-29 15:52:15.329739"], ["updated_at", "2015-10-29 15:52:15.329739"]]  (0.7ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-29 15:52:15.360629"], ["updated_at", "2015-10-29 15:52:15.360629"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.6ms) SELECT 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 SQL (0.1ms) 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.366595"], ["updated_at", "2015-10-29 15:52:15.366595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 15:52:15.382792"], ["updated_at", "2015-10-29 15:52:15.382792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (1.5ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:15.391174"], ["updated_at", "2015-10-29 15:52:15.391174"]]  (0.4ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.5ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.402419"], ["updated_at", "2015-10-29 15:52:15.402419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (2.3ms) SELECT 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 SQL (0.2ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 15:52:15.424035"], ["updated_at", "2015-10-29 15:52:15.424035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.426841"], ["updated_at", "2015-10-29 15:52:15.426841"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 2], ["attached_object_type", "Message"]] SQL (0.0ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]]  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 15:52:15.439520"], ["updated_at", "2015-10-29 15:52:15.439520"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:15.455413"], ["updated_at", "2015-10-29 15:52:15.455413"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.463203"], ["updated_at", "2015-10-29 15:52:15.463203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]  (1.2ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-29 15:52:15.483498"], ["updated_at", "2015-10-29 15:52:15.483498"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.6ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (3.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-29 15:52:15.506083"], ["updated_at", "2015-10-29 15:52:15.506083"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.517758"], ["updated_at", "2015-10-29 15:52:15.517758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 15:52:15.523623"], ["updated_at", "2015-10-29 15:52:15.523623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:15.538698"], ["updated_at", "2015-10-29 15:52:15.538698"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.7ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.546537"], ["updated_at", "2015-10-29 15:52:15.546537"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 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 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 15:52:15.568669"], ["updated_at", "2015-10-29 15:52:15.568669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-29 15:52:15.578358"], ["updated_at", "2015-10-29 15:52:15.578358"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-10-29 15:52:15.598371"], ["updated_at", "2015-10-29 15:52:15.598371"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.601209"], ["updated_at", "2015-10-29 15:52:15.601209"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (4.0ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:15.620392"], ["updated_at", "2015-10-29 15:52:15.620392"]]  (1.5ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.6ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.643814"], ["updated_at", "2015-10-29 15:52:15.643814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user34@sleede.com"], ["name", "user34"], ["created_at", "2015-10-29 15:52:15.652925"], ["updated_at", "2015-10-29 15:52:15.652925"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (3.1ms) rollback transaction  (0.2ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:15.698373"], ["updated_at", "2015-10-29 15:52:15.698373"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.708290"], ["updated_at", "2015-10-29 15:52:15.708290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (1.7ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:15.734295"], ["updated_at", "2015-10-29 15:52:15.734295"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.738266"], ["updated_at", "2015-10-29 15:52:15.738266"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.4ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.3ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.2ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.4ms) 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"]] SQL (0.2ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-29 15:52:15.768224"], ["updated_at", "2015-10-29 15:52:15.768224"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.777340"], ["updated_at", "2015-10-29 15:52:15.777340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (1.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.2ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (1.5ms) rollback transaction  (0.3ms) begin transaction  (0.5ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.2ms) rollback transaction  (0.4ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:15.810782"], ["updated_at", "2015-10-29 15:52:15.810782"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.5ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (2.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (3.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (2.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.6ms) 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)   (0.3ms) select sqlite_version(*)  (2.8ms) CREATE INDEX "idx_wupee_notif_type_config_on_notification_type_id" ON "wupee_notification_type_configurations" ("notification_type_id")  (0.3ms) 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'  (1.6ms) CREATE INDEX "idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id" ON "wupee_notification_type_configurations" ("receiver_type", "receiver_id")  (1.0ms) CREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "index_wupee_notification_types_on_name" ON "wupee_notification_types" ("name")  (6.8ms) 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)  (2.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20151029155724')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151029155722')  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151029155723') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (6.5ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (2.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.9ms) 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)   (0.2ms) select sqlite_version(*)  (2.8ms) CREATE INDEX "idx_wupee_notif_type_config_on_notification_type_id" ON "wupee_notification_type_configurations" ("notification_type_id")  (0.2ms) 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'  (1.4ms) CREATE INDEX "idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id" ON "wupee_notification_type_configurations" ("receiver_type", "receiver_id")  (1.2ms) CREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "index_wupee_notification_types_on_name" ON "wupee_notification_types" ("name")  (1.1ms) 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)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20151029164358')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151029164356')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151029164357') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (9.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.1ms) select sqlite_version(*)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUsers (20150213150625)  (0.2ms) begin transaction  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213150625"]]  (1.3ms) commit transaction Migrating to CreateMessages (20150213152846)  (0.1ms) begin transaction  (2.0ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213152846"]]  (0.6ms) commit transaction Migrating to CreateWupeeNotificationTypeConfigurations (20151029113101)  (0.1ms) begin transaction  (0.8ms) 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)  (0.1ms) CREATE INDEX "idx_wupee_notif_type_config_on_notification_type_id" ON "wupee_notification_type_configurations" ("notification_type_id")  (0.6ms) 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'  (0.2ms) CREATE INDEX "idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id" ON "wupee_notification_type_configurations" ("receiver_type", "receiver_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029113101"]]  (1.7ms) commit transaction Migrating to CreateWupeeNotifications (20151029113107)  (0.1ms) begin transaction  (0.6ms) 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)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029113107"]]  (4.7ms) commit transaction Migrating to CreateWupeeNotificationTypes (20151029113122)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.4ms) CREATE UNIQUE INDEX "index_wupee_notification_types_on_name" ON "wupee_notification_types" ("name") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029113122"]]  (1.2ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) 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'  (0.1ms)  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'   (0.1ms) 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' ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:45:20.795191"], ["updated_at", "2015-10-29 16:45:20.795191"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.806906"], ["updated_at", "2015-10-29 16:45:20.806906"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) 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 21ms (Views: 12.8ms | ActiveRecord: 0.0ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 16:45:20.849936"], ["updated_at", "2015-10-29 16:45:20.849936"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:45:20.855441"], ["updated_at", "2015-10-29 16:45:20.855441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.873742"], ["updated_at", "2015-10-29 16:45:20.873742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (1.5ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.2ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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.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)  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 16:45:20.904149"], ["updated_at", "2015-10-29 16:45:20.904149"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:45:20.914088"], ["updated_at", "2015-10-29 16:45:20.914088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.3ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.924810"], ["updated_at", "2015-10-29 16:45:20.924810"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.2ms) 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 (10.9ms) Completed 200 OK in 20ms (Views: 18.2ms | ActiveRecord: 0.5ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 16:45:20.954997"], ["updated_at", "2015-10-29 16:45:20.954997"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:45:20.958016"], ["updated_at", "2015-10-29 16:45:20.958016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.976523"], ["updated_at", "2015-10-29 16:45:20.976523"]]  (1.5ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:45:21.028410"], ["updated_at", "2015-10-29 16:45:21.028410"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.039494"], ["updated_at", "2015-10-29 16:45:21.039494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.3ms) 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"]] SQL (0.2ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 8ms (ActiveRecord: 0.5ms) Wupee::Notification Load (0.2ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:45:21.236044"], ["updated_at", "2015-10-29 16:45:21.236044"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.241502"], ["updated_at", "2015-10-29 16:45:21.241502"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 16:45:21.254486"], ["updated_at", "2015-10-29 16:45:21.254486"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:45:21.256954"], ["updated_at", "2015-10-29 16:45:21.256954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (1.6ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.272012"], ["updated_at", "2015-10-29 16:45:21.272012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.8ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user7

message body

 (2.1ms) rollback transaction  (0.4ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 16:45:21.322972"], ["updated_at", "2015-10-29 16:45:21.322972"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:45:21.330604"], ["updated_at", "2015-10-29 16:45:21.330604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.340210"], ["updated_at", "2015-10-29 16:45:21.340210"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.0ms) 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 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: 7bit

user8

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 16:45:21.351196"], ["updated_at", "2015-10-29 16:45:21.351196"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:45:21.359372"], ["updated_at", "2015-10-29 16:45:21.359372"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.376574"], ["updated_at", "2015-10-29 16:45:21.376574"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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 (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: 7bit

user9

message body

 (1.0ms) rollback transaction  (1.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 16:45:21.393519"], ["updated_at", "2015-10-29 16:45:21.393519"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:45:21.405510"], ["updated_at", "2015-10-29 16:45:21.405510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.420530"], ["updated_at", "2015-10-29 16:45:21.420530"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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 (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: 7bit

user10

message body

 (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:45:21.432307"], ["updated_at", "2015-10-29 16:45:21.432307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (1.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (1.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.463530"], ["updated_at", "2015-10-29 16:45:21.463530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:45:21.475567"], ["updated_at", "2015-10-29 16:45:21.475567"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (9.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:45:21.491643"], ["updated_at", "2015-10-29 16:45:21.491643"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.502477"], ["updated_at", "2015-10-29 16:45:21.502477"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:45:21.510471"], ["updated_at", "2015-10-29 16:45:21.510471"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.512126"], ["updated_at", "2015-10-29 16:45:21.512126"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (1.2ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:45:21.523563"], ["updated_at", "2015-10-29 16:45:21.523563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:45:21.536502"], ["updated_at", "2015-10-29 16:45:21.536502"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.539331"], ["updated_at", "2015-10-29 16:45:21.539331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:45:21.545368"], ["updated_at", "2015-10-29 16:45:21.545368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.557758"], ["updated_at", "2015-10-29 16:45:21.557758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.9ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:45:21.563292"], ["updated_at", "2015-10-29 16:45:21.563292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:45:21.572820"], ["updated_at", "2015-10-29 16:45:21.572820"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.577788"], ["updated_at", "2015-10-29 16:45:21.577788"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-29 16:45:21.603311"], ["updated_at", "2015-10-29 16:45:21.603311"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (2.7ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:45:21.627624"], ["updated_at", "2015-10-29 16:45:21.627624"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.9ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:45:21.655647"], ["updated_at", "2015-10-29 16:45:21.655647"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.659787"], ["updated_at", "2015-10-29 16:45:21.659787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:45:21.670943"], ["updated_at", "2015-10-29 16:45:21.670943"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.672821"], ["updated_at", "2015-10-29 16:45:21.672821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-29 16:45:21.687917"], ["updated_at", "2015-10-29 16:45:21.687917"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-29 16:45:21.711709"], ["updated_at", "2015-10-29 16:45:21.711709"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 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 SQL (0.1ms) 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.718970"], ["updated_at", "2015-10-29 16:45:21.718970"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-29 16:45:21.726194"], ["updated_at", "2015-10-29 16:45:21.726194"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.7ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (1.0ms) 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  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:45:21.760625"], ["updated_at", "2015-10-29 16:45:21.760625"]]  (0.8ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.773046"], ["updated_at", "2015-10-29 16:45:21.773046"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.4ms) 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  (1.0ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-29 16:45:21.784415"], ["updated_at", "2015-10-29 16:45:21.784415"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-29 16:45:21.812006"], ["updated_at", "2015-10-29 16:45:21.812006"]]  (0.5ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:45:21.819080"], ["updated_at", "2015-10-29 16:45:21.819080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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.830484"], ["updated_at", "2015-10-29 16:45:21.830484"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.4ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.2ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.4ms) 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"]] SQL (0.4ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.4ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-29 16:45:21.856332"], ["updated_at", "2015-10-29 16:45:21.856332"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.0ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.4ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users"  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-29 16:45:21.885782"], ["updated_at", "2015-10-29 16:45:21.885782"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.4ms) 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 16:45:21.891444"], ["updated_at", "2015-10-29 16:45:21.891444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:50:39.531959"], ["updated_at", "2015-10-29 16:50:39.531959"]]  (0.4ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (7.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:51:21.568110"], ["updated_at", "2015-10-29 16:51:21.568110"]]  (0.2ms) SELECT "users"."id" FROM "users"  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:51:56.444806"], ["updated_at", "2015-10-29 16:51:56.444806"]]  (0.4ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (7.7ms) rollback transaction  (0.2ms) begin transaction  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (1.4ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:56:40.583189"], ["updated_at", "2015-10-29 16:56:40.583189"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.6ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (1.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.600060"], ["updated_at", "2015-10-29 16:56:40.600060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) 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 20ms (Views: 12.7ms | ActiveRecord: 0.0ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 16:56:40.644541"], ["updated_at", "2015-10-29 16:56:40.644541"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:56:40.646837"], ["updated_at", "2015-10-29 16:56:40.646837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.662294"], ["updated_at", "2015-10-29 16:56:40.662294"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.3ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.4ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.3ms) 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.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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 16:56:40.694044"], ["updated_at", "2015-10-29 16:56:40.694044"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:56:40.696868"], ["updated_at", "2015-10-29 16:56:40.696868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.6ms) 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"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.6ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) 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.722555"], ["updated_at", "2015-10-29 16:56:40.722555"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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.5ms) Completed 200 OK in 7ms (Views: 4.7ms | ActiveRecord: 0.3ms)  (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 16:56:40.744016"], ["updated_at", "2015-10-29 16:56:40.744016"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:56:40.747866"], ["updated_at", "2015-10-29 16:56:40.747866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.8ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.771420"], ["updated_at", "2015-10-29 16:56:40.771420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] SQL (0.2ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:56:40.798882"], ["updated_at", "2015-10-29 16:56:40.798882"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.805324"], ["updated_at", "2015-10-29 16:56:40.805324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.1ms) 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"]] SQL (0.0ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.9ms) rollback transaction  (8.7ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:56:40.996096"], ["updated_at", "2015-10-29 16:56:40.996096"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.002942"], ["updated_at", "2015-10-29 16:56:41.002942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 16:56:41.014899"], ["updated_at", "2015-10-29 16:56:41.014899"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:56:41.017579"], ["updated_at", "2015-10-29 16:56:41.017579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.031219"], ["updated_at", "2015-10-29 16:56:41.031219"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.6ms) SQL (0.2ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user7

message body

 (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 16:56:41.077208"], ["updated_at", "2015-10-29 16:56:41.077208"]]  (0.9ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (2.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:56:41.082243"], ["updated_at", "2015-10-29 16:56:41.082243"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.7ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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.103774"], ["updated_at", "2015-10-29 16:56:41.103774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) SQL (0.2ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user8

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 16:56:41.116475"], ["updated_at", "2015-10-29 16:56:41.116475"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:56:41.121173"], ["updated_at", "2015-10-29 16:56:41.121173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.6ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.143657"], ["updated_at", "2015-10-29 16:56:41.143657"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.3ms) 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 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: 7bit

user9

message body

 (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 16:56:41.162379"], ["updated_at", "2015-10-29 16:56:41.162379"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:56:41.165060"], ["updated_at", "2015-10-29 16:56:41.165060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.175987"], ["updated_at", "2015-10-29 16:56:41.175987"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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.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: 7bit

user10

message body

 (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:56:41.184838"], ["updated_at", "2015-10-29 16:56:41.184838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.6ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.210424"], ["updated_at", "2015-10-29 16:56:41.210424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.2ms) 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"]] SQL (0.3ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.4ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "wupee_notifications"  (1.4ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:56:41.229339"], ["updated_at", "2015-10-29 16:56:41.229339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:56:41.241112"], ["updated_at", "2015-10-29 16:56:41.241112"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.246164"], ["updated_at", "2015-10-29 16:56:41.246164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:56:41.259534"], ["updated_at", "2015-10-29 16:56:41.259534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.264823"], ["updated_at", "2015-10-29 16:56:41.264823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.9ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:56:41.271872"], ["updated_at", "2015-10-29 16:56:41.271872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:56:41.276767"], ["updated_at", "2015-10-29 16:56:41.276767"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.283125"], ["updated_at", "2015-10-29 16:56:41.283125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 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 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:56:41.305255"], ["updated_at", "2015-10-29 16:56:41.305255"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.307670"], ["updated_at", "2015-10-29 16:56:41.307670"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:56:41.311835"], ["updated_at", "2015-10-29 16:56:41.311835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:56:41.318163"], ["updated_at", "2015-10-29 16:56:41.318163"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.327894"], ["updated_at", "2015-10-29 16:56:41.327894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-29 16:56:41.344694"], ["updated_at", "2015-10-29 16:56:41.344694"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.5ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.9ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:56:41.367216"], ["updated_at", "2015-10-29 16:56:41.367216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:56:41.377714"], ["updated_at", "2015-10-29 16:56:41.377714"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.383448"], ["updated_at", "2015-10-29 16:56:41.383448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 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 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:56:41.397721"], ["updated_at", "2015-10-29 16:56:41.397721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.404561"], ["updated_at", "2015-10-29 16:56:41.404561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-29 16:56:41.411938"], ["updated_at", "2015-10-29 16:56:41.411938"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-29 16:56:41.434372"], ["updated_at", "2015-10-29 16:56:41.434372"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.4ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.443369"], ["updated_at", "2015-10-29 16:56:41.443369"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-29 16:56:41.454499"], ["updated_at", "2015-10-29 16:56:41.454499"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (5.2ms) 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"]]  (0.4ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.2ms) 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  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:56:41.498855"], ["updated_at", "2015-10-29 16:56:41.498855"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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.503018"], ["updated_at", "2015-10-29 16:56:41.503018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-29 16:56:41.511573"], ["updated_at", "2015-10-29 16:56:41.511573"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.3ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-29 16:56:41.550859"], ["updated_at", "2015-10-29 16:56:41.550859"]]  (1.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:56:41.560647"], ["updated_at", "2015-10-29 16:56:41.560647"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.8ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.6ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.577090"], ["updated_at", "2015-10-29 16:56:41.577090"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.0ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.4ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-29 16:56:41.589317"], ["updated_at", "2015-10-29 16:56:41.589317"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.6ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (1.8ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.4ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.9ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-29 16:56:41.641325"], ["updated_at", "2015-10-29 16:56:41.641325"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.4ms) 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 16:56:41.647126"], ["updated_at", "2015-10-29 16:56:41.647126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.2ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:38:52.896142"], ["updated_at", "2015-10-30 10:38:52.896142"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.8ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.925695"], ["updated_at", "2015-10-30 10:38:52.925695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 10:38:52.940519"], ["updated_at", "2015-10-30 10:38:52.940519"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.3ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:38:52.969400"], ["updated_at", "2015-10-30 10:38:52.969400"]]  (0.6ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.985543"], ["updated_at", "2015-10-30 10:38:52.985543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.9ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (1.0ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:38:53.021768"], ["updated_at", "2015-10-30 10:38:53.021768"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.8ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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:53.027958"], ["updated_at", "2015-10-30 10:38:53.027958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.7ms) 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"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.8ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:39:05.245905"], ["updated_at", "2015-10-30 10:39:05.245905"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.7ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.272002"], ["updated_at", "2015-10-30 10:39:05.272002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 10:39:05.290294"], ["updated_at", "2015-10-30 10:39:05.290294"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.4ms) 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  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:39:05.315131"], ["updated_at", "2015-10-30 10:39:05.315131"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.323297"], ["updated_at", "2015-10-30 10:39:05.323297"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:39:05.338841"], ["updated_at", "2015-10-30 10:39:05.338841"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.6ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.344348"], ["updated_at", "2015-10-30 10:39:05.344348"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:39:05.358337"], ["updated_at", "2015-10-30 10:39:05.358337"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.362248"], ["updated_at", "2015-10-30 10:39:05.362248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.0ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:39:25.589729"], ["updated_at", "2015-10-30 10:39:25.589729"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.7ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.615400"], ["updated_at", "2015-10-30 10:39:25.615400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 10:39:25.629163"], ["updated_at", "2015-10-30 10:39:25.629163"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (6.4ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.6ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:39:25.661112"], ["updated_at", "2015-10-30 10:39:25.661112"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.669958"], ["updated_at", "2015-10-30 10:39:25.669958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:39:25.680364"], ["updated_at", "2015-10-30 10:39:25.680364"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.693191"], ["updated_at", "2015-10-30 10:39:25.693191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:39:25.703001"], ["updated_at", "2015-10-30 10:39:25.703001"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.705773"], ["updated_at", "2015-10-30 10:39:25.705773"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.6ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:47:13.891076"], ["updated_at", "2015-10-30 10:47:13.891076"]]  (0.4ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.8ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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:13.923569"], ["updated_at", "2015-10-30 10:47:13.923569"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) 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.4ms) Completed 200 OK in 28ms (Views: 17.0ms | ActiveRecord: 0.0ms)  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 10:47:13.991709"], ["updated_at", "2015-10-30 10:47:13.991709"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (2.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:47:13.995241"], ["updated_at", "2015-10-30 10:47:13.995241"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.6ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.046416"], ["updated_at", "2015-10-30 10:47:14.046416"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.2ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.3ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.3ms) 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.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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 10:47:14.077627"], ["updated_at", "2015-10-30 10:47:14.077627"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:47:14.080488"], ["updated_at", "2015-10-30 10:47:14.080488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.095703"], ["updated_at", "2015-10-30 10:47:14.095703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.2ms) 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]] Message Load (0.2ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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 (5.8ms) Completed 200 OK in 14ms (Views: 11.1ms | ActiveRecord: 0.4ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 10:47:14.121036"], ["updated_at", "2015-10-30 10:47:14.121036"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:47:14.126109"], ["updated_at", "2015-10-30 10:47:14.126109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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.143193"], ["updated_at", "2015-10-30 10:47:14.143193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.3ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:47:14.178998"], ["updated_at", "2015-10-30 10:47:14.178998"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.187619"], ["updated_at", "2015-10-30 10:47:14.187619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.2ms) 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"]] SQL (0.0ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 4ms (ActiveRecord: 0.2ms) Wupee::Notification Load (0.3ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:47:14.401583"], ["updated_at", "2015-10-30 10:47:14.401583"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (1.0ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.407568"], ["updated_at", "2015-10-30 10:47:14.407568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 10:47:14.420027"], ["updated_at", "2015-10-30 10:47:14.420027"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:47:14.422512"], ["updated_at", "2015-10-30 10:47:14.422512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.2ms) 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.435712"], ["updated_at", "2015-10-30 10:47:14.435712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 1.5ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:47:14.455762"], ["updated_at", "2015-10-30 10:47:14.455762"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.459479"], ["updated_at", "2015-10-30 10:47:14.459479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 0.6ms  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 10:47:14.471260"], ["updated_at", "2015-10-30 10:47:14.471260"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:47:14.477363"], ["updated_at", "2015-10-30 10:47:14.477363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.3ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.7ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) 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.496788"], ["updated_at", "2015-10-30 10:47:14.496788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 0.7ms  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.6ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:47:14.510809"], ["updated_at", "2015-10-30 10:47:14.510809"]]  (0.4ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.525486"], ["updated_at", "2015-10-30 10:47:14.525486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 1.0ms  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:47:14.545475"], ["updated_at", "2015-10-30 10:47:14.545475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.4ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.588858"], ["updated_at", "2015-10-30 10:47:14.588858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:47:14.601622"], ["updated_at", "2015-10-30 10:47:14.601622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (2.8ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:47:14.610279"], ["updated_at", "2015-10-30 10:47:14.610279"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.621416"], ["updated_at", "2015-10-30 10:47:14.621416"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:47:14.640732"], ["updated_at", "2015-10-30 10:47:14.640732"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.649511"], ["updated_at", "2015-10-30 10:47:14.649511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:47:14.654833"], ["updated_at", "2015-10-30 10:47:14.654833"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:47:14.661854"], ["updated_at", "2015-10-30 10:47:14.661854"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.5ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.668198"], ["updated_at", "2015-10-30 10:47:14.668198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.3ms) 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"]]  (1.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:47:14.683932"], ["updated_at", "2015-10-30 10:47:14.683932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.686858"], ["updated_at", "2015-10-30 10:47:14.686858"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:47:14.694903"], ["updated_at", "2015-10-30 10:47:14.694903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:47:14.703015"], ["updated_at", "2015-10-30 10:47:14.703015"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (2.7ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.723278"], ["updated_at", "2015-10-30 10:47:14.723278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.0ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-30 10:47:14.755522"], ["updated_at", "2015-10-30 10:47:14.755522"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.2ms) 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"]]  (0.6ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:47:14.793161"], ["updated_at", "2015-10-30 10:47:14.793161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:47:14.798985"], ["updated_at", "2015-10-30 10:47:14.798985"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.802564"], ["updated_at", "2015-10-30 10:47:14.802564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 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 SQL (0.4ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:47:14.840291"], ["updated_at", "2015-10-30 10:47:14.840291"]]  (0.6ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.846651"], ["updated_at", "2015-10-30 10:47:14.846651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-30 10:47:14.857651"], ["updated_at", "2015-10-30 10:47:14.857651"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-30 10:47:14.872683"], ["updated_at", "2015-10-30 10:47:14.872683"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (1.3ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (1.3ms) SELECT 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 SQL (0.3ms) 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.890498"], ["updated_at", "2015-10-30 10:47:14.890498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-30 10:47:14.901764"], ["updated_at", "2015-10-30 10:47:14.901764"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (1.6ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (2.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:47:14.947536"], ["updated_at", "2015-10-30 10:47:14.947536"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.953156"], ["updated_at", "2015-10-30 10:47:14.953156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.2ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-30 10:47:14.962519"], ["updated_at", "2015-10-30 10:47:14.962519"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-30 10:47:14.981999"], ["updated_at", "2015-10-30 10:47:14.981999"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.7ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-30 10:47:15.008044"], ["updated_at", "2015-10-30 10:47:15.008044"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.5ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 10:47:15.053908"], ["updated_at", "2015-10-30 10:47:15.053908"]]  (1.5ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:47:15.062089"], ["updated_at", "2015-10-30 10:47:15.062089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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:15.075060"], ["updated_at", "2015-10-30 10:47:15.075060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.0ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.2ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-30 10:47:15.088587"], ["updated_at", "2015-10-30 10:47:15.088587"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.9ms) 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"]]  (0.4ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.6ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.2ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.4ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (1.2ms) rollback transaction  (0.2ms) begin transaction  (0.3ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.6ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 10:47:15.153745"], ["updated_at", "2015-10-30 10:47:15.153745"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.6ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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 10:47:15.168302"], ["updated_at", "2015-10-30 10:47:15.168302"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.2ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.3ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.7ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:49:26.947409"], ["updated_at", "2015-10-30 10:49:26.947409"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.8ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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:26.967105"], ["updated_at", "2015-10-30 10:49:26.967105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) 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 18ms (Views: 11.0ms | ActiveRecord: 0.0ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 10:49:27.008171"], ["updated_at", "2015-10-30 10:49:27.008171"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:49:27.010461"], ["updated_at", "2015-10-30 10:49:27.010461"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.028350"], ["updated_at", "2015-10-30 10:49:27.028350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.2ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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.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)  (1.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 10:49:27.067014"], ["updated_at", "2015-10-30 10:49:27.067014"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:49:27.069729"], ["updated_at", "2015-10-30 10:49:27.069729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.4ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.7ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.085278"], ["updated_at", "2015-10-30 10:49:27.085278"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.2ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.2ms) 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 (5.2ms) Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.4ms)  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 10:49:27.109660"], ["updated_at", "2015-10-30 10:49:27.109660"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:49:27.116610"], ["updated_at", "2015-10-30 10:49:27.116610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.3ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.132551"], ["updated_at", "2015-10-30 10:49:27.132551"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Message Load (0.2ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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)  (2.0ms) rollback transaction  (0.4ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:49:27.172662"], ["updated_at", "2015-10-30 10:49:27.172662"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.178102"], ["updated_at", "2015-10-30 10:49:27.178102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.2ms) 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"]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) Wupee::Notification Load (0.2ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:49:27.366658"], ["updated_at", "2015-10-30 10:49:27.366658"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.371097"], ["updated_at", "2015-10-30 10:49:27.371097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 10:49:27.385485"], ["updated_at", "2015-10-30 10:49:27.385485"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:49:27.388372"], ["updated_at", "2015-10-30 10:49:27.388372"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.396697"], ["updated_at", "2015-10-30 10:49:27.396697"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:49:27.408913"], ["updated_at", "2015-10-30 10:49:27.408913"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.411330"], ["updated_at", "2015-10-30 10:49:27.411330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 0.5ms  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 10:49:27.420554"], ["updated_at", "2015-10-30 10:49:27.420554"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:49:27.424133"], ["updated_at", "2015-10-30 10:49:27.424133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.3ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.436453"], ["updated_at", "2015-10-30 10:49:27.436453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 1.9ms  (1.5ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:49:27.455533"], ["updated_at", "2015-10-30 10:49:27.455533"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.458766"], ["updated_at", "2015-10-30 10:49:27.458766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 0.7ms  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:49:27.465511"], ["updated_at", "2015-10-30 10:49:27.465511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.476586"], ["updated_at", "2015-10-30 10:49:27.476586"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.2ms) 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"]] SQL (0.2ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.2ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:49:27.491055"], ["updated_at", "2015-10-30 10:49:27.491055"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:49:27.505201"], ["updated_at", "2015-10-30 10:49:27.505201"]]  (0.4ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.515125"], ["updated_at", "2015-10-30 10:49:27.515125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 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 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:49:27.527532"], ["updated_at", "2015-10-30 10:49:27.527532"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.7ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.536947"], ["updated_at", "2015-10-30 10:49:27.536947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:49:27.543830"], ["updated_at", "2015-10-30 10:49:27.543830"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:49:27.548623"], ["updated_at", "2015-10-30 10:49:27.548623"]]  (1.9ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.7ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.569449"], ["updated_at", "2015-10-30 10:49:27.569449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:49:27.580838"], ["updated_at", "2015-10-30 10:49:27.580838"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.582718"], ["updated_at", "2015-10-30 10:49:27.582718"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:49:27.591087"], ["updated_at", "2015-10-30 10:49:27.591087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.6ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:49:27.606740"], ["updated_at", "2015-10-30 10:49:27.606740"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.631885"], ["updated_at", "2015-10-30 10:49:27.631885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-30 10:49:27.651657"], ["updated_at", "2015-10-30 10:49:27.651657"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:49:27.671205"], ["updated_at", "2015-10-30 10:49:27.671205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:49:27.677060"], ["updated_at", "2015-10-30 10:49:27.677060"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.680968"], ["updated_at", "2015-10-30 10:49:27.680968"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:49:27.699884"], ["updated_at", "2015-10-30 10:49:27.699884"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.702161"], ["updated_at", "2015-10-30 10:49:27.702161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-30 10:49:27.719370"], ["updated_at", "2015-10-30 10:49:27.719370"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-30 10:49:27.734609"], ["updated_at", "2015-10-30 10:49:27.734609"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.737475"], ["updated_at", "2015-10-30 10:49:27.737475"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-30 10:49:27.745486"], ["updated_at", "2015-10-30 10:49:27.745486"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.7ms) 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"]]  (2.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (3.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (8.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:49:27.808731"], ["updated_at", "2015-10-30 10:49:27.808731"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.815674"], ["updated_at", "2015-10-30 10:49:27.815674"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (1.5ms) rollback transaction  (0.4ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (2.9ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-30 10:49:27.837298"], ["updated_at", "2015-10-30 10:49:27.837298"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-30 10:49:27.857929"], ["updated_at", "2015-10-30 10:49:27.857929"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (1.0ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (3.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-30 10:49:27.880054"], ["updated_at", "2015-10-30 10:49:27.880054"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (1.5ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.9ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 10:49:27.924810"], ["updated_at", "2015-10-30 10:49:27.924810"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:49:27.932223"], ["updated_at", "2015-10-30 10:49:27.932223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.5ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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.952293"], ["updated_at", "2015-10-30 10:49:27.952293"]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.2ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.2ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-30 10:49:27.971439"], ["updated_at", "2015-10-30 10:49:27.971439"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.0ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 10:49:27.993899"], ["updated_at", "2015-10-30 10:49:27.993899"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.3ms) 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 10:49:27.999861"], ["updated_at", "2015-10-30 10:49:27.999861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.3ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.6ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:29.247799"], ["updated_at", "2015-10-30 10:51:29.247799"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.6ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.265030"], ["updated_at", "2015-10-30 10:51:29.265030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) 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.2ms) Completed 200 OK in 19ms (Views: 11.8ms | ActiveRecord: 0.0ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 10:51:29.306403"], ["updated_at", "2015-10-30 10:51:29.306403"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:29.309538"], ["updated_at", "2015-10-30 10:51:29.309538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.6ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.5ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.328641"], ["updated_at", "2015-10-30 10:51:29.328641"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.2ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.2ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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/index.json.jbuilder (15.6ms) Completed 200 OK in 20ms (Views: 15.8ms | ActiveRecord: 0.5ms)  (1.8ms) rollback transaction  (0.3ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 10:51:29.370195"], ["updated_at", "2015-10-30 10:51:29.370195"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:29.373955"], ["updated_at", "2015-10-30 10:51:29.373955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.7ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.394558"], ["updated_at", "2015-10-30 10:51:29.394558"]]  (0.9ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.2ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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.4ms) Completed 200 OK in 9ms (Views: 5.4ms | ActiveRecord: 0.3ms)  (1.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 10:51:29.422001"], ["updated_at", "2015-10-30 10:51:29.422001"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:29.428667"], ["updated_at", "2015-10-30 10:51:29.428667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.6ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.445248"], ["updated_at", "2015-10-30 10:51:29.445248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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)  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:29.482704"], ["updated_at", "2015-10-30 10:51:29.482704"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.6ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.494478"], ["updated_at", "2015-10-30 10:51:29.494478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.2ms) 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"]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 14ms (ActiveRecord: 0.3ms) Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:29.709584"], ["updated_at", "2015-10-30 10:51:29.709584"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.712740"], ["updated_at", "2015-10-30 10:51:29.712740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 10:51:29.727749"], ["updated_at", "2015-10-30 10:51:29.727749"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:29.730348"], ["updated_at", "2015-10-30 10:51:29.730348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.8ms) 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.742216"], ["updated_at", "2015-10-30 10:51:29.742216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.8ms) SQL (0.2ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user7

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-30 10:51:29.784457"], ["updated_at", "2015-10-30 10:51:29.784457"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:29.796174"], ["updated_at", "2015-10-30 10:51:29.796174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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.819349"], ["updated_at", "2015-10-30 10:51:29.819349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user8

message body

 (1.2ms) rollback transaction  (0.1ms) begin transaction  (1.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 10:51:29.851115"], ["updated_at", "2015-10-30 10:51:29.851115"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (6.6ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:29.863776"], ["updated_at", "2015-10-30 10:51:29.863776"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.3ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.9ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.901701"], ["updated_at", "2015-10-30 10:51:29.901701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.3ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user9

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-30 10:51:29.913292"], ["updated_at", "2015-10-30 10:51:29.913292"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:29.916662"], ["updated_at", "2015-10-30 10:51:29.916662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.5ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.951624"], ["updated_at", "2015-10-30 10:51:29.951624"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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 (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: 7bit

user10

message body

 (0.8ms) rollback transaction  (0.7ms) begin transaction  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:29.965337"], ["updated_at", "2015-10-30 10:51:29.965337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.7ms) 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"]]  (0.5ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (2.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.5ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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:30.014110"], ["updated_at", "2015-10-30 10:51:30.014110"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.2ms) 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"]] SQL (1.0ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (2.6ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:30.032673"], ["updated_at", "2015-10-30 10:51:30.032673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.6ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:30.041355"], ["updated_at", "2015-10-30 10:51:30.041355"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.7ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.061911"], ["updated_at", "2015-10-30 10:51:30.061911"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:30.077074"], ["updated_at", "2015-10-30 10:51:30.077074"]]  (0.7ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.085844"], ["updated_at", "2015-10-30 10:51:30.085844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (2.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (2.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:30.096027"], ["updated_at", "2015-10-30 10:51:30.096027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:30.117155"], ["updated_at", "2015-10-30 10:51:30.117155"]]  (0.4ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.136145"], ["updated_at", "2015-10-30 10:51:30.136145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 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 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:30.146461"], ["updated_at", "2015-10-30 10:51:30.146461"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.148640"], ["updated_at", "2015-10-30 10:51:30.148640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:30.155615"], ["updated_at", "2015-10-30 10:51:30.155615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:30.170053"], ["updated_at", "2015-10-30 10:51:30.170053"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.184038"], ["updated_at", "2015-10-30 10:51:30.184038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-30 10:51:30.200772"], ["updated_at", "2015-10-30 10:51:30.200772"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:30.231680"], ["updated_at", "2015-10-30 10:51:30.231680"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.9ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:30.257752"], ["updated_at", "2015-10-30 10:51:30.257752"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.266018"], ["updated_at", "2015-10-30 10:51:30.266018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 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 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:30.281977"], ["updated_at", "2015-10-30 10:51:30.281977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.284391"], ["updated_at", "2015-10-30 10:51:30.284391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-30 10:51:30.292623"], ["updated_at", "2015-10-30 10:51:30.292623"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-30 10:51:30.318519"], ["updated_at", "2015-10-30 10:51:30.318519"]]  (0.6ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.328660"], ["updated_at", "2015-10-30 10:51:30.328660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.4ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-30 10:51:30.346594"], ["updated_at", "2015-10-30 10:51:30.346594"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.6ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.4ms) 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  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:30.386209"], ["updated_at", "2015-10-30 10:51:30.386209"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.404529"], ["updated_at", "2015-10-30 10:51:30.404529"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.4ms) 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  (0.9ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-30 10:51:30.422038"], ["updated_at", "2015-10-30 10:51:30.422038"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.6ms) 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"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.8ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-30 10:51:30.455309"], ["updated_at", "2015-10-30 10:51:30.455309"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-30 10:51:30.485853"], ["updated_at", "2015-10-30 10:51:30.485853"]]  (0.6ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (1.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.0ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.4ms) begin transaction  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 10:51:30.553383"], ["updated_at", "2015-10-30 10:51:30.553383"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:30.556954"], ["updated_at", "2015-10-30 10:51:30.556954"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) 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"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (1.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.7ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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:30.584628"], ["updated_at", "2015-10-30 10:51:30.584628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.2ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.2ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (1.8ms) rollback transaction  (0.3ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-30 10:51:30.600639"], ["updated_at", "2015-10-30 10:51:30.600639"]]  (0.5ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.9ms) rollback transaction  (0.2ms) begin transaction  (2.4ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.2ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 10:51:30.655846"], ["updated_at", "2015-10-30 10:51:30.655846"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.5ms) 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 10:51:30.666853"], ["updated_at", "2015-10-30 10:51:30.666853"]]  (1.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.5ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.7ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:58.965728"], ["updated_at", "2015-10-30 10:51:58.965728"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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:58.986769"], ["updated_at", "2015-10-30 10:51:58.986769"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) 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.2ms) Completed 200 OK in 16ms (Views: 11.0ms | ActiveRecord: 0.0ms)  (8.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 10:51:59.029254"], ["updated_at", "2015-10-30 10:51:59.029254"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:59.032338"], ["updated_at", "2015-10-30 10:51:59.032338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.4ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.6ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.054084"], ["updated_at", "2015-10-30 10:51:59.054084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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/index.json.jbuilder (12.6ms) Completed 200 OK in 16ms (Views: 13.2ms | ActiveRecord: 0.4ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 10:51:59.080974"], ["updated_at", "2015-10-30 10:51:59.080974"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:59.083485"], ["updated_at", "2015-10-30 10:51:59.083485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.6ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.8ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.117680"], ["updated_at", "2015-10-30 10:51:59.117680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.2ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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 (3.9ms) Completed 200 OK in 10ms (Views: 6.5ms | ActiveRecord: 0.3ms)  (1.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 10:51:59.140780"], ["updated_at", "2015-10-30 10:51:59.140780"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:59.143618"], ["updated_at", "2015-10-30 10:51:59.143618"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.3ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (1.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (1.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.178667"], ["updated_at", "2015-10-30 10:51:59.178667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (1.6ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:59.209339"], ["updated_at", "2015-10-30 10:51:59.209339"]]  (0.4ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (1.0ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.224465"], ["updated_at", "2015-10-30 10:51:59.224465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.3ms) 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"]] SQL (0.2ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 17ms (ActiveRecord: 0.5ms) Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (11.4ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:59.444609"], ["updated_at", "2015-10-30 10:51:59.444609"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.448560"], ["updated_at", "2015-10-30 10:51:59.448560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 10:51:59.461149"], ["updated_at", "2015-10-30 10:51:59.461149"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:59.463343"], ["updated_at", "2015-10-30 10:51:59.463343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.5ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.478617"], ["updated_at", "2015-10-30 10:51:59.478617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.7ms) SQL (0.2ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user7

message body

 (1.4ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-30 10:51:59.522942"], ["updated_at", "2015-10-30 10:51:59.522942"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:59.529384"], ["updated_at", "2015-10-30 10:51:59.529384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.542311"], ["updated_at", "2015-10-30 10:51:59.542311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user8

message body

 (1.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 10:51:59.561149"], ["updated_at", "2015-10-30 10:51:59.561149"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:59.569347"], ["updated_at", "2015-10-30 10:51:59.569347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (4.6ms) 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.583717"], ["updated_at", "2015-10-30 10:51:59.583717"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user9

message body

 (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-30 10:51:59.611341"], ["updated_at", "2015-10-30 10:51:59.611341"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:59.613656"], ["updated_at", "2015-10-30 10:51:59.613656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.9ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.5ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.8ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.644496"], ["updated_at", "2015-10-30 10:51:59.644496"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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 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: 7bit

user10

message body

 (0.9ms) rollback transaction  (0.2ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:59.658514"], ["updated_at", "2015-10-30 10:51:59.658514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.7ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.5ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.686754"], ["updated_at", "2015-10-30 10:51:59.686754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.2ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.3ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:59.711780"], ["updated_at", "2015-10-30 10:51:59.711780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:59.726283"], ["updated_at", "2015-10-30 10:51:59.726283"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.731351"], ["updated_at", "2015-10-30 10:51:59.731351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 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 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:59.745775"], ["updated_at", "2015-10-30 10:51:59.745775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.748717"], ["updated_at", "2015-10-30 10:51:59.748717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:59.754861"], ["updated_at", "2015-10-30 10:51:59.754861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:59.767867"], ["updated_at", "2015-10-30 10:51:59.767867"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.778601"], ["updated_at", "2015-10-30 10:51:59.778601"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:59.807140"], ["updated_at", "2015-10-30 10:51:59.807140"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.808858"], ["updated_at", "2015-10-30 10:51:59.808858"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:59.812831"], ["updated_at", "2015-10-30 10:51:59.812831"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:59.817428"], ["updated_at", "2015-10-30 10:51:59.817428"]]  (0.7ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.838001"], ["updated_at", "2015-10-30 10:51:59.838001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.9ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-30 10:51:59.862435"], ["updated_at", "2015-10-30 10:51:59.862435"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (1.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.9ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:59.903874"], ["updated_at", "2015-10-30 10:51:59.903874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:59.909646"], ["updated_at", "2015-10-30 10:51:59.909646"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.918641"], ["updated_at", "2015-10-30 10:51:59.918641"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 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 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:59.932673"], ["updated_at", "2015-10-30 10:51:59.932673"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.937136"], ["updated_at", "2015-10-30 10:51:59.937136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-30 10:51:59.946880"], ["updated_at", "2015-10-30 10:51:59.946880"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.7ms) 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"]]  (0.4ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-30 10:51:59.974466"], ["updated_at", "2015-10-30 10:51:59.974466"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 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 SQL (0.1ms) 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.982436"], ["updated_at", "2015-10-30 10:51:59.982436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (1.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-30 10:51:59.996393"], ["updated_at", "2015-10-30 10:51:59.996393"]]  (0.5ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.8ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (2.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.6ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.4ms) 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  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:52:00.054799"], ["updated_at", "2015-10-30 10:52:00.054799"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (1.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.067029"], ["updated_at", "2015-10-30 10:52:00.067029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.5ms) 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  (4.0ms) rollback transaction  (0.5ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-30 10:52:00.100136"], ["updated_at", "2015-10-30 10:52:00.100136"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.7ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.8ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-30 10:52:00.143288"], ["updated_at", "2015-10-30 10:52:00.143288"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.3ms) begin transaction  (1.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-30 10:52:00.166920"], ["updated_at", "2015-10-30 10:52:00.166920"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (1.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.0ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (1.1ms) begin transaction  (0.3ms) rollback transaction  (0.4ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 10:52:00.236078"], ["updated_at", "2015-10-30 10:52:00.236078"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:52:00.240862"], ["updated_at", "2015-10-30 10:52:00.240862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:52:00.250663"], ["updated_at", "2015-10-30 10:52:00.250663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.0ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.9ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-30 10:52:00.264924"], ["updated_at", "2015-10-30 10:52:00.264924"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.9ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (3.7ms) rollback transaction  (0.1ms) begin transaction  (0.4ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 10:52:00.315950"], ["updated_at", "2015-10-30 10:52:00.315950"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.4ms) 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 10:52:00.320821"], ["updated_at", "2015-10-30 10:52:00.320821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.4ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.4ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (1.0ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 11:10:53.918804"], ["updated_at", "2015-10-30 11:10:53.918804"]]  (0.4ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 11:10:53.942096"], ["updated_at", "2015-10-30 11:10:53.942096"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.8ms) 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:10:53.962706"], ["updated_at", "2015-10-30 11:10:53.962706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:10:53.972987"], ["updated_at", "2015-10-30 11:10:53.972987"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 11:10:53.981807"], ["updated_at", "2015-10-30 11:10:53.981807"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 11:10:53.984081"], ["updated_at", "2015-10-30 11:10:53.984081"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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:10:53.992737"], ["updated_at", "2015-10-30 11:10:53.992737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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:10:54.001298"], ["updated_at", "2015-10-30 11:10:54.001298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 8.1ms  (1.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 11:10:54.020715"], ["updated_at", "2015-10-30 11:10:54.020715"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 11:10:54.024291"], ["updated_at", "2015-10-30 11:10:54.024291"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.7ms) 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:10:54.029179"], ["updated_at", "2015-10-30 11:10:54.029179"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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:10:54.041491"], ["updated_at", "2015-10-30 11:10:54.041491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 0.6ms  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 11:10:54.048644"], ["updated_at", "2015-10-30 11:10:54.048644"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 11:10:54.050942"], ["updated_at", "2015-10-30 11:10:54.050942"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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:10:54.054308"], ["updated_at", "2015-10-30 11:10:54.054308"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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:10:54.057423"], ["updated_at", "2015-10-30 11:10:54.057423"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 0.4ms  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 11:10:54.063019"], ["updated_at", "2015-10-30 11:10:54.063019"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 11:10:54.065631"], ["updated_at", "2015-10-30 11:10:54.065631"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.8ms) 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:10:54.074287"], ["updated_at", "2015-10-30 11:10:54.074287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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:10:54.086767"], ["updated_at", "2015-10-30 11:10:54.086767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms  (0.9ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 11:11:16.491878"], ["updated_at", "2015-10-30 11:11:16.491878"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 11:11:16.515258"], ["updated_at", "2015-10-30 11:11:16.515258"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.3ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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:11:16.532898"], ["updated_at", "2015-10-30 11:11:16.532898"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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:11:16.540907"], ["updated_at", "2015-10-30 11:11:16.540907"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (9.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 11:11:16.556366"], ["updated_at", "2015-10-30 11:11:16.556366"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 11:11:16.558986"], ["updated_at", "2015-10-30 11:11:16.558986"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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:11:16.569973"], ["updated_at", "2015-10-30 11:11:16.569973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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:11:16.578012"], ["updated_at", "2015-10-30 11:11:16.578012"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 30.8ms  (1.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (1.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 11:11:16.620575"], ["updated_at", "2015-10-30 11:11:16.620575"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 11:11:16.625335"], ["updated_at", "2015-10-30 11:11:16.625335"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.4ms) 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:11:16.637627"], ["updated_at", "2015-10-30 11:11:16.637627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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:11:16.647459"], ["updated_at", "2015-10-30 11:11:16.647459"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 0.9ms  (1.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (1.0ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 11:11:16.655597"], ["updated_at", "2015-10-30 11:11:16.655597"]]  (0.2ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 11:11:16.661509"], ["updated_at", "2015-10-30 11:11:16.661509"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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:11:16.666907"], ["updated_at", "2015-10-30 11:11:16.666907"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:11:16.674286"], ["updated_at", "2015-10-30 11:11:16.674286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 1.8ms  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 11:11:16.684345"], ["updated_at", "2015-10-30 11:11:16.684345"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 11:11:16.686630"], ["updated_at", "2015-10-30 11:11:16.686630"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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:11:16.695191"], ["updated_at", "2015-10-30 11:11:16.695191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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:11:16.701509"], ["updated_at", "2015-10-30 11:11:16.701509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 2.2ms  (5.7ms) rollback transaction ActiveRecord::SchemaMigration Load (7.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 11:12:11.575825"], ["updated_at", "2015-10-30 11:12:11.575825"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 11:12:11.595730"], ["updated_at", "2015-10-30 11:12:11.595730"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.3ms) 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.613142"], ["updated_at", "2015-10-30 11:12:11.613142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.622530"], ["updated_at", "2015-10-30 11:12:11.622530"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (8.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 11:12:11.637787"], ["updated_at", "2015-10-30 11:12:11.637787"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 11:12:11.640110"], ["updated_at", "2015-10-30 11:12:11.640110"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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.647459"], ["updated_at", "2015-10-30 11:12:11.647459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.654358"], ["updated_at", "2015-10-30 11:12:11.654358"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.7ms) SQL (0.3ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user2

message body

 (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 11:12:11.714379"], ["updated_at", "2015-10-30 11:12:11.714379"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user3

message body

 (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 11:12:11.735474"], ["updated_at", "2015-10-30 11:12:11.735474"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 11:12:11.740127"], ["updated_at", "2015-10-30 11:12:11.740127"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.743277"], ["updated_at", "2015-10-30 11:12:11.743277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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.747414"], ["updated_at", "2015-10-30 11:12:11.747414"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.1ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user4

message body

 (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.4ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 11:12:11.781612"], ["updated_at", "2015-10-30 11:12:11.781612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user5

message body

 (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (7.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 11:13:43.990171"], ["updated_at", "2015-10-30 11:13:43.990171"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 11:13:44.011090"], ["updated_at", "2015-10-30 11:13:44.011090"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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:44.027149"], ["updated_at", "2015-10-30 11:13:44.027149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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:44.036550"], ["updated_at", "2015-10-30 11:13:44.036550"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (8.9ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 11:13:44.052586"], ["updated_at", "2015-10-30 11:13:44.052586"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 11:13:44.055574"], ["updated_at", "2015-10-30 11:13:44.055574"]]  (1.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.3ms) 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:44.063268"], ["updated_at", "2015-10-30 11:13:44.063268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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:44.073143"], ["updated_at", "2015-10-30 11:13:44.073143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 3.9ms  (2.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 11:13:44.089737"], ["updated_at", "2015-10-30 11:13:44.089737"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 11:13:44.093797"], ["updated_at", "2015-10-30 11:13:44.093797"]]  (1.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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:44.102922"], ["updated_at", "2015-10-30 11:13:44.102922"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:44.110979"], ["updated_at", "2015-10-30 11:13:44.110979"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 1.8ms  (1.6ms) rollback transaction  (0.4ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 11:13:44.127320"], ["updated_at", "2015-10-30 11:13:44.127320"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 11:13:44.132071"], ["updated_at", "2015-10-30 11:13:44.132071"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.3ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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:44.139831"], ["updated_at", "2015-10-30 11:13:44.139831"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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:44.143829"], ["updated_at", "2015-10-30 11:13:44.143829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 1.5ms  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (1.6ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 11:13:44.156410"], ["updated_at", "2015-10-30 11:13:44.156410"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 11:13:44.160963"], ["updated_at", "2015-10-30 11:13:44.160963"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.5ms) 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:44.166663"], ["updated_at", "2015-10-30 11:13:44.166663"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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:44.176947"], ["updated_at", "2015-10-30 11:13:44.176947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 1.1ms  (1.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 11:13:56.894242"], ["updated_at", "2015-10-30 11:13:56.894242"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 11:13:56.913330"], ["updated_at", "2015-10-30 11:13:56.913330"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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:56.931015"], ["updated_at", "2015-10-30 11:13:56.931015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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:56.939392"], ["updated_at", "2015-10-30 11:13:56.939392"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 11:13:56.945144"], ["updated_at", "2015-10-30 11:13:56.945144"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 11:13:56.947343"], ["updated_at", "2015-10-30 11:13:56.947343"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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:56.952563"], ["updated_at", "2015-10-30 11:13:56.952563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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:56.961359"], ["updated_at", "2015-10-30 11:13:56.961359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.6ms) SQL (0.2ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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: 7bit

user2

message body

 (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.6ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.9ms) 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"]]  (0.4ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 11:13:57.030358"], ["updated_at", "2015-10-30 11:13:57.030358"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user3

message body

 (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 11:13:57.046975"], ["updated_at", "2015-10-30 11:13:57.046975"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 11:13:57.050504"], ["updated_at", "2015-10-30 11:13:57.050504"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.3ms) 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.059594"], ["updated_at", "2015-10-30 11:13:57.059594"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.070296"], ["updated_at", "2015-10-30 11:13:57.070296"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.1ms) SQL (0.1ms) 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 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: 7bit

user4

message body

 (2.2ms) rollback transaction  (0.3ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (1.4ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.6ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 11:13:57.101850"], ["updated_at", "2015-10-30 11:13:57.101850"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.1ms) SQL (0.1ms) 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: 7bit

user5

message body

 (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 11:25:12.106485"], ["updated_at", "2015-10-30 11:25:12.106485"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."receiver" = 2 AND "wupee_notification_types"."notification_type" IS NULL LIMIT 1 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  (1.9ms) rollback transaction  (0.2ms) begin transaction  (0.3ms) rollback transaction  (0.5ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.0ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 11:27:21.224383"], ["updated_at", "2015-10-30 11:27:21.224383"]]  (0.4ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.3ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.0ms) rollback transaction  (0.4ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.5ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.3ms) 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"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.4ms) 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  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.0ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 11:27:52.896639"], ["updated_at", "2015-10-30 11:27:52.896639"]]  (0.4ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (1.7ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.6ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.6ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (1.0ms) 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  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.6ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 11:28:08.529128"], ["updated_at", "2015-10-30 11:28:08.529128"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (7.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" Wupee::NotificationTypeConfiguration Load (0.3ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.3ms) 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  (1.3ms) rollback transaction  (0.3ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.4ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 11:28:29.962185"], ["updated_at", "2015-10-30 11:28:29.962185"]]  (0.2ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (9.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.8ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" Wupee::NotificationTypeConfiguration Load (0.3ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.2ms) 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  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (7.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 11:28:42.273895"], ["updated_at", "2015-10-30 11:28:42.273895"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.5ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.0ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 11:28:42.300402"], ["updated_at", "2015-10-30 11:28:42.300402"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-30 11:28:42.319759"], ["updated_at", "2015-10-30 11:28:42.319759"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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:28:42.354539"], ["updated_at", "2015-10-30 11:28:42.354539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-30 11:28:42.365735"], ["updated_at", "2015-10-30 11:28:42.365735"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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 11:28:42.368391"], ["updated_at", "2015-10-30 11:28:42.368391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-10-30 11:28:42.383846"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.6ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 11:28:56.929583"], ["updated_at", "2015-10-30 11:28:56.929583"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.5ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (9.2ms) rollback transaction  (0.3ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 11:28:56.957720"], ["updated_at", "2015-10-30 11:28:56.957720"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-30 11:28:56.962931"], ["updated_at", "2015-10-30 11:28:56.962931"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.5ms) 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:28:57.007399"], ["updated_at", "2015-10-30 11:28:57.007399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-30 11:28:57.017937"], ["updated_at", "2015-10-30 11:28:57.017937"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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 11:28:57.020498"], ["updated_at", "2015-10-30 11:28:57.020498"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" Wupee::NotificationTypeConfiguration Load (0.2ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.2ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-10-30 11:28:57.047954"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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 11:28:57.081471"], ["updated_at", "2015-10-30 11:28:57.081471"]]  (0.1ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.6ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 11:29:35.265860"], ["updated_at", "2015-10-30 11:29:35.265860"]]  (0.4ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.6ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 11:29:35.291676"], ["updated_at", "2015-10-30 11:29:35.291676"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-30 11:29:35.296960"], ["updated_at", "2015-10-30 11:29:35.296960"]]  (0.5ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.6ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.6ms) 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:29:35.341773"], ["updated_at", "2015-10-30 11:29:35.341773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.2ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-30 11:29:35.359212"], ["updated_at", "2015-10-30 11:29:35.359212"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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 11:29:35.366550"], ["updated_at", "2015-10-30 11:29:35.366550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 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 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.5ms) SELECT "users".* FROM "users" Wupee::NotificationType Load (7.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" Wupee::NotificationTypeConfiguration Load (0.2ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (1.0ms) 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  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.3ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.2ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-10-30 11:29:35.584833"], ["id", 3]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (1.2ms) 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  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] SQL (0.2ms) 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]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.3ms) 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 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) 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 11:29:35.657762"], ["updated_at", "2015-10-30 11:29:35.657762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (2.9ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 205.0ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 11:30:13.102741"], ["updated_at", "2015-10-30 11:30:13.102741"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (8.7ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.9ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 11:30:13.130712"], ["updated_at", "2015-10-30 11:30:13.130712"]]  (0.2ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-30 11:30:13.136401"], ["updated_at", "2015-10-30 11:30:13.136401"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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:30:13.173604"], ["updated_at", "2015-10-30 11:30:13.173604"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-30 11:30:13.181612"], ["updated_at", "2015-10-30 11:30:13.181612"]]  (0.6ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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 11:30:13.192554"], ["updated_at", "2015-10-30 11:30:13.192554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" Wupee::NotificationType Load (0.3ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" Wupee::NotificationTypeConfiguration Load (0.3ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.2ms) 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  (0.3ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.3ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] SQL (0.2ms) 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]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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  (0.3ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-10-30 11:30:13.230020"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.3ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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 11:30:13.275724"], ["updated_at", "2015-10-30 11:30:13.275724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.7ms) SQL (0.2ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.5ms) begin transaction  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 12:57:52.510029"], ["updated_at", "2015-10-30 12:57:52.510029"]]  (0.3ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 12:57:52.533983"], ["updated_at", "2015-10-30 12:57:52.533983"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 12:57:52.543782"], ["updated_at", "2015-10-30 12:57:52.543782"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.9ms) 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 12:57:52.575793"], ["updated_at", "2015-10-30 12:57:52.575793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 12:57:52.583082"], ["updated_at", "2015-10-30 12:57:52.583082"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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 12:57:52.585344"], ["updated_at", "2015-10-30 12:57:52.585344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-10-30 12:57:52.605753"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:57:52.631967"], ["updated_at", "2015-10-30 12:57:52.631967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.3ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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:57:52.818921"], ["updated_at", "2015-10-30 12:57:52.818921"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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:57:52.822359"], ["updated_at", "2015-10-30 12:57:52.822359"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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.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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 12:58:07.664818"], ["updated_at", "2015-10-30 12:58:07.664818"]]  (0.7ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 12:58:07.704409"], ["updated_at", "2015-10-30 12:58:07.704409"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 12:58:07.713525"], ["updated_at", "2015-10-30 12:58:07.713525"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.6ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (1.0ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (8.5ms) 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 12:58:07.745353"], ["updated_at", "2015-10-30 12:58:07.745353"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 12:58:07.779287"], ["updated_at", "2015-10-30 12:58:07.779287"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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 12:58:07.782560"], ["updated_at", "2015-10-30 12:58:07.782560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.0ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-10-30 12:58:07.802613"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:07.825988"], ["updated_at", "2015-10-30 12:58:07.825988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.2ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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:08.019866"], ["updated_at", "2015-10-30 12:58:08.019866"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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:08.024322"], ["updated_at", "2015-10-30 12:58:08.024322"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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.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  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.6ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 12:58:25.485033"], ["updated_at", "2015-10-30 12:58:25.485033"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.3ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (8.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 12:58:25.510937"], ["updated_at", "2015-10-30 12:58:25.510937"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 12:58:25.526058"], ["updated_at", "2015-10-30 12:58:25.526058"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.9ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.5ms) 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 12:58:25.559077"], ["updated_at", "2015-10-30 12:58:25.559077"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 12:58:25.580539"], ["updated_at", "2015-10-30 12:58:25.580539"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 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 SQL (0.2ms) 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 12:58:25.588535"], ["updated_at", "2015-10-30 12:58:25.588535"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.0ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-10-30 12:58:25.610117"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] SQL (0.0ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.625859"], ["updated_at", "2015-10-30 12:58:25.625859"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.8ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.797514"], ["updated_at", "2015-10-30 12:58:25.797514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.800776"], ["updated_at", "2015-10-30 12:58:25.800776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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.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  (0.2ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] Wupee::NotificationTypeConfiguration Load (0.3ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.817032"], ["updated_at", "2015-10-30 12:58:25.817032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]]  (0.6ms) SELECT COUNT(*) FROM "wupee_notifications" Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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.834620"], ["updated_at", "2015-10-30 12:58:25.834620"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.2ms) 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.8ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:17.145620"], ["updated_at", "2015-10-30 13:01:17.145620"]]  (0.4ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.4ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:17.167791"], ["updated_at", "2015-10-30 13:01:17.167791"]]  (0.4ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 13:01:17.175741"], ["updated_at", "2015-10-30 13:01:17.175741"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (2.1ms) 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:17.215039"], ["updated_at", "2015-10-30 13:01:17.215039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 13:01:17.224096"], ["updated_at", "2015-10-30 13:01:17.224096"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 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 SQL (0.1ms) 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:01:17.228425"], ["updated_at", "2015-10-30 13:01:17.228425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] SQL (0.2ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-10-30 13:01:17.241369"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.4ms) 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  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] SQL (0.3ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-10-30 13:01:17.258980"], ["id", 4]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.3ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.1ms) SQL (0.1ms) 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  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.458217"], ["updated_at", "2015-10-30 13:01:17.458217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.466956"], ["updated_at", "2015-10-30 13:01:17.466956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.471221"], ["updated_at", "2015-10-30 13:01:17.471221"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.474632"], ["updated_at", "2015-10-30 13:01:17.474632"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]]  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.482358"], ["updated_at", "2015-10-30 13:01:17.482358"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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.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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.486671"], ["updated_at", "2015-10-30 13:01:17.486671"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.489357"], ["updated_at", "2015-10-30 13:01:17.489357"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:26.006650"], ["updated_at", "2015-10-30 13:01:26.006650"]]  (0.3ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.3ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.7ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:26.024669"], ["updated_at", "2015-10-30 13:01:26.024669"]]  (0.2ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 13:01:26.034218"], ["updated_at", "2015-10-30 13:01:26.034218"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.5ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.6ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.9ms) 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:26.072479"], ["updated_at", "2015-10-30 13:01:26.072479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 13:01:26.081908"], ["updated_at", "2015-10-30 13:01:26.081908"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.3ms) 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:01:26.084087"], ["updated_at", "2015-10-30 13:01:26.084087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 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 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-10-30 13:01:26.097827"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.3ms) 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  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.3ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] SQL (0.2ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-10-30 13:01:26.112112"], ["id", 4]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.1ms) SQL (0.1ms) 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  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.308825"], ["updated_at", "2015-10-30 13:01:26.308825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.317976"], ["updated_at", "2015-10-30 13:01:26.317976"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.322391"], ["updated_at", "2015-10-30 13:01:26.322391"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.325459"], ["updated_at", "2015-10-30 13:01:26.325459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]]  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.332862"], ["updated_at", "2015-10-30 13:01:26.332862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.336929"], ["updated_at", "2015-10-30 13:01:26.336929"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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.339439"], ["updated_at", "2015-10-30 13:01:26.339439"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:31.689830"], ["updated_at", "2015-10-30 13:01:31.689830"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.5ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.705007"], ["updated_at", "2015-10-30 13:01:31.705007"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) 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 18ms (Views: 10.0ms | ActiveRecord: 0.0ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 13:01:31.750723"], ["updated_at", "2015-10-30 13:01:31.750723"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:01:31.753164"], ["updated_at", "2015-10-30 13:01:31.753164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.6ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.768942"], ["updated_at", "2015-10-30 13:01:31.768942"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.4ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.2ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.4ms) 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.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)  (1.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 13:01:31.812518"], ["updated_at", "2015-10-30 13:01:31.812518"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:01:31.815361"], ["updated_at", "2015-10-30 13:01:31.815361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.831783"], ["updated_at", "2015-10-30 13:01:31.831783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.3ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.3ms) 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 (6.1ms) Completed 200 OK in 13ms (Views: 9.5ms | ActiveRecord: 0.7ms)  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 13:01:31.855129"], ["updated_at", "2015-10-30 13:01:31.855129"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:01:31.858051"], ["updated_at", "2015-10-30 13:01:31.858051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.877177"], ["updated_at", "2015-10-30 13:01:31.877177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:31.905680"], ["updated_at", "2015-10-30 13:01:31.905680"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.915492"], ["updated_at", "2015-10-30 13:01:31.915492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.2ms) 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"]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 23ms (ActiveRecord: 0.3ms) Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 13:01:32.111584"], ["updated_at", "2015-10-30 13:01:32.111584"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-30 13:01:32.114376"], ["updated_at", "2015-10-30 13:01:32.114376"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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.118270"], ["updated_at", "2015-10-30 13:01:32.118270"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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.123893"], ["updated_at", "2015-10-30 13:01:32.123893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 13:01:32.136055"], ["updated_at", "2015-10-30 13:01:32.136055"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 13:01:32.138744"], ["updated_at", "2015-10-30 13:01:32.138744"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.142168"], ["updated_at", "2015-10-30 13:01:32.142168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.145881"], ["updated_at", "2015-10-30 13:01:32.145881"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.5ms) SQL (0.2ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (1.5ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (6.2ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:01:32.212157"], ["updated_at", "2015-10-30 13:01:32.212157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.1ms) SQL (0.1ms) 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  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 13:01:32.236365"], ["updated_at", "2015-10-30 13:01:32.236365"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 13:01:32.238402"], ["updated_at", "2015-10-30 13:01:32.238402"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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.241435"], ["updated_at", "2015-10-30 13:01:32.241435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.248339"], ["updated_at", "2015-10-30 13:01:32.248339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.1ms) SQL (0.2ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:01:32.281187"], ["updated_at", "2015-10-30 13:01:32.281187"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.2ms) SQL (0.2ms) 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  (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-30 13:01:32.300819"], ["updated_at", "2015-10-30 13:01:32.300819"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.4ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.3ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (1.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:32.318456"], ["updated_at", "2015-10-30 13:01:32.318456"]]  (0.5ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.333645"], ["updated_at", "2015-10-30 13:01:32.333645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-30 13:01:32.354498"], ["updated_at", "2015-10-30 13:01:32.354498"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (2.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-30 13:01:32.372438"], ["updated_at", "2015-10-30 13:01:32.372438"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.378103"], ["updated_at", "2015-10-30 13:01:32.378103"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (1.5ms) rollback transaction  (0.2ms) begin transaction  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-30 13:01:32.400085"], ["updated_at", "2015-10-30 13:01:32.400085"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-30 13:01:32.415639"], ["updated_at", "2015-10-30 13:01:32.415639"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.2ms) 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.418539"], ["updated_at", "2015-10-30 13:01:32.418539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-30 13:01:32.440943"], ["updated_at", "2015-10-30 13:01:32.440943"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:01:32.472416"], ["updated_at", "2015-10-30 13:01:32.472416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:32.477724"], ["updated_at", "2015-10-30 13:01:32.477724"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.9ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.480389"], ["updated_at", "2015-10-30 13:01:32.480389"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (3.9ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-30 13:01:32.505377"], ["updated_at", "2015-10-30 13:01:32.505377"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.7ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-30 13:01:32.527994"], ["updated_at", "2015-10-30 13:01:32.527994"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.2ms) 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.535241"], ["updated_at", "2015-10-30 13:01:32.535241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:01:32.552062"], ["updated_at", "2015-10-30 13:01:32.552062"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:32.556620"], ["updated_at", "2015-10-30 13:01:32.556620"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.6ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.573384"], ["updated_at", "2015-10-30 13:01:32.573384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:01:32.590090"], ["updated_at", "2015-10-30 13:01:32.590090"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.591889"], ["updated_at", "2015-10-30 13:01:32.591889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:32.604744"], ["updated_at", "2015-10-30 13:01:32.604744"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (4.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.616743"], ["updated_at", "2015-10-30 13:01:32.616743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (6.6ms) rollback transaction  (0.2ms) begin transaction  (0.7ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-30 13:01:32.639368"], ["updated_at", "2015-10-30 13:01:32.639368"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.2ms) 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  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:32.667125"], ["updated_at", "2015-10-30 13:01:32.667125"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.674617"], ["updated_at", "2015-10-30 13:01:32.674617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (1.0ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (4.2ms) 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"]]  (1.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:32.704250"], ["updated_at", "2015-10-30 13:01:32.704250"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.707552"], ["updated_at", "2015-10-30 13:01:32.707552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:32.718768"], ["updated_at", "2015-10-30 13:01:32.718768"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.8ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.730195"], ["updated_at", "2015-10-30 13:01:32.730195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:32.740458"], ["updated_at", "2015-10-30 13:01:32.740458"]]  (0.2ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.6ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:32.747561"], ["updated_at", "2015-10-30 13:01:32.747561"]]  (0.5ms) SELECT "users"."id" FROM "users"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 13:01:32.759053"], ["updated_at", "2015-10-30 13:01:32.759053"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.769371"], ["updated_at", "2015-10-30 13:01:32.769371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 13:01:32.783864"], ["updated_at", "2015-10-30 13:01:32.783864"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.2ms) 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:01:32.786480"], ["updated_at", "2015-10-30 13:01:32.786480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 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 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.3ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-10-30 13:01:32.804107"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.0ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-10-30 13:01:32.811482"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) SQL (0.1ms) 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  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.842786"], ["updated_at", "2015-10-30 13:01:32.842786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.851119"], ["updated_at", "2015-10-30 13:01:32.851119"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.855233"], ["updated_at", "2015-10-30 13:01:32.855233"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.858543"], ["updated_at", "2015-10-30 13:01:32.858543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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 (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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]]  (0.2ms) SELECT COUNT(*) FROM "wupee_notifications" Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.869166"], ["updated_at", "2015-10-30 13:01:32.869166"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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: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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.873311"], ["updated_at", "2015-10-30 13:01:32.873311"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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.875702"], ["updated_at", "2015-10-30 13:01:32.875702"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.5ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:32.903197"], ["updated_at", "2015-10-30 13:01:32.903197"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.907930"], ["updated_at", "2015-10-30 13:01:32.907930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.6ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.2ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.6ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 13:01:32.930418"], ["updated_at", "2015-10-30 13:01:32.930418"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.946523"], ["updated_at", "2015-10-30 13:01:32.946523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.2ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.9ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.7ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:32.981382"], ["updated_at", "2015-10-30 13:01:32.981382"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.4ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:02:29.310084"], ["updated_at", "2015-10-30 13:02:29.310084"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.8ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.6ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.331274"], ["updated_at", "2015-10-30 13:02:29.331274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) 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.2ms) Completed 200 OK in 19ms (Views: 11.6ms | ActiveRecord: 0.0ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 13:02:29.375211"], ["updated_at", "2015-10-30 13:02:29.375211"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:02:29.377908"], ["updated_at", "2015-10-30 13:02:29.377908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.393622"], ["updated_at", "2015-10-30 13:02:29.393622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.2ms) 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.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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 13:02:29.424955"], ["updated_at", "2015-10-30 13:02:29.424955"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:02:29.433649"], ["updated_at", "2015-10-30 13:02:29.433649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.448901"], ["updated_at", "2015-10-30 13:02:29.448901"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.2ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.5ms) 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 (9.3ms) Completed 200 OK in 16ms (Views: 12.9ms | ActiveRecord: 0.8ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 13:02:29.473899"], ["updated_at", "2015-10-30 13:02:29.473899"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:02:29.476481"], ["updated_at", "2015-10-30 13:02:29.476481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) 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"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.502402"], ["updated_at", "2015-10-30 13:02:29.502402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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)  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.3ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.8ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:02:29.527467"], ["updated_at", "2015-10-30 13:02:29.527467"]]  (4.7ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.543883"], ["updated_at", "2015-10-30 13:02:29.543883"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.2ms) 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"]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 9ms (ActiveRecord: 0.3ms) Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 13:02:29.748022"], ["updated_at", "2015-10-30 13:02:29.748022"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-30 13:02:29.750958"], ["updated_at", "2015-10-30 13:02:29.750958"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.3ms) 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.754948"], ["updated_at", "2015-10-30 13:02:29.754948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.764121"], ["updated_at", "2015-10-30 13:02:29.764121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 13:02:29.773063"], ["updated_at", "2015-10-30 13:02:29.773063"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 13:02:29.775435"], ["updated_at", "2015-10-30 13:02:29.775435"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.784962"], ["updated_at", "2015-10-30 13:02:29.784962"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.793414"], ["updated_at", "2015-10-30 13:02:29.793414"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.7ms) SQL (0.2ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.9ms) 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"]]  (0.4ms) SELECT "users"."id" FROM "users"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:02:29.857014"], ["updated_at", "2015-10-30 13:02:29.857014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 13:02:29.876290"], ["updated_at", "2015-10-30 13:02:29.876290"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (4.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 13:02:29.879512"], ["updated_at", "2015-10-30 13:02:29.879512"]]  (0.7ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.900163"], ["updated_at", "2015-10-30 13:02:29.900163"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.908690"], ["updated_at", "2015-10-30 13:02:29.908690"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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.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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.7ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (1.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:02:29.937813"], ["updated_at", "2015-10-30 13:02:29.937813"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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  (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-30 13:02:29.963425"], ["updated_at", "2015-10-30 13:02:29.963425"]]  (1.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.5ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.6ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:02:29.974017"], ["updated_at", "2015-10-30 13:02:29.974017"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.980216"], ["updated_at", "2015-10-30 13:02:29.980216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.2ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (1.6ms) rollback transaction  (0.3ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-30 13:02:30.009856"], ["updated_at", "2015-10-30 13:02:30.009856"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.7ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-30 13:02:30.027982"], ["updated_at", "2015-10-30 13:02:30.027982"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.032975"], ["updated_at", "2015-10-30 13:02:30.032975"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.3ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-30 13:02:30.052156"], ["updated_at", "2015-10-30 13:02:30.052156"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-30 13:02:30.073745"], ["updated_at", "2015-10-30 13:02:30.073745"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.4ms) 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.082196"], ["updated_at", "2015-10-30 13:02:30.082196"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-30 13:02:30.095826"], ["updated_at", "2015-10-30 13:02:30.095826"]]  (2.7ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:02:30.127797"], ["updated_at", "2015-10-30 13:02:30.127797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:02:30.141773"], ["updated_at", "2015-10-30 13:02:30.141773"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.149438"], ["updated_at", "2015-10-30 13:02:30.149438"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-30 13:02:30.157999"], ["updated_at", "2015-10-30 13:02:30.157999"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-30 13:02:30.167726"], ["updated_at", "2015-10-30 13:02:30.167726"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.3ms) 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.171751"], ["updated_at", "2015-10-30 13:02:30.171751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:02:30.187188"], ["updated_at", "2015-10-30 13:02:30.187188"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:02:30.202808"], ["updated_at", "2015-10-30 13:02:30.202808"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.5ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.206301"], ["updated_at", "2015-10-30 13:02:30.206301"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.5ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:02:30.218439"], ["updated_at", "2015-10-30 13:02:30.218439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.220743"], ["updated_at", "2015-10-30 13:02:30.220743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.7ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:02:30.238099"], ["updated_at", "2015-10-30 13:02:30.238099"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.244198"], ["updated_at", "2015-10-30 13:02:30.244198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.3ms) 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  (1.3ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-30 13:02:30.258624"], ["updated_at", "2015-10-30 13:02:30.258624"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.2ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:02:30.280970"], ["updated_at", "2015-10-30 13:02:30.280970"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.283949"], ["updated_at", "2015-10-30 13:02:30.283949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (3.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:02:30.309195"], ["updated_at", "2015-10-30 13:02:30.309195"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.317395"], ["updated_at", "2015-10-30 13:02:30.317395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.7ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:02:30.331253"], ["updated_at", "2015-10-30 13:02:30.331253"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.343287"], ["updated_at", "2015-10-30 13:02:30.343287"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:02:30.359940"], ["updated_at", "2015-10-30 13:02:30.359940"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:02:30.366495"], ["updated_at", "2015-10-30 13:02:30.366495"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 13:02:30.368745"], ["updated_at", "2015-10-30 13:02:30.368745"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.372169"], ["updated_at", "2015-10-30 13:02:30.372169"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 13:02:30.380448"], ["updated_at", "2015-10-30 13:02:30.380448"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.6ms) SELECT 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 SQL (0.1ms) 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:02:30.386940"], ["updated_at", "2015-10-30 13:02:30.386940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] SQL (0.2ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-10-30 13:02:30.395953"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.4ms) 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  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.3ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-10-30 13:02:30.416242"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) SQL (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.441635"], ["updated_at", "2015-10-30 13:02:30.441635"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.450102"], ["updated_at", "2015-10-30 13:02:30.450102"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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: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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.454182"], ["updated_at", "2015-10-30 13:02:30.454182"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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.456757"], ["updated_at", "2015-10-30 13:02:30.456757"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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 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  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]]  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications" Wupee::NotificationTypeConfiguration Load (0.4ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.464991"], ["updated_at", "2015-10-30 13:02:30.464991"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.469311"], ["updated_at", "2015-10-30 13:02:30.469311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.472755"], ["updated_at", "2015-10-30 13:02:30.472755"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:02:30.497148"], ["updated_at", "2015-10-30 13:02:30.497148"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.501009"], ["updated_at", "2015-10-30 13:02:30.501009"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.0ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.6ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "wupee_notifications"  (2.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 13:02:30.523210"], ["updated_at", "2015-10-30 13:02:30.523210"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (3.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.5ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.533464"], ["updated_at", "2015-10-30 13:02:30.533464"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.0ms) 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"]] SQL (0.2ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (2.3ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.1ms) begin transaction  (2.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.7ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.8ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:02:30.575685"], ["updated_at", "2015-10-30 13:02:30.575685"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.6ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.9ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) 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"]]  (0.6ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:03:07.734571"], ["updated_at", "2015-10-30 13:03:07.734571"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.6ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.8ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.750426"], ["updated_at", "2015-10-30 13:03:07.750426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) 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"]]  (0.1ms) 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 26ms (Views: 16.0ms | ActiveRecord: 0.0ms)  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 13:03:07.815815"], ["updated_at", "2015-10-30 13:03:07.815815"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:03:07.818288"], ["updated_at", "2015-10-30 13:03:07.818288"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.825380"], ["updated_at", "2015-10-30 13:03:07.825380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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/index.json.jbuilder (11.1ms) Completed 200 OK in 12ms (Views: 11.2ms | ActiveRecord: 0.3ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 13:03:07.848812"], ["updated_at", "2015-10-30 13:03:07.848812"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:03:07.852010"], ["updated_at", "2015-10-30 13:03:07.852010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.6ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.882523"], ["updated_at", "2015-10-30 13:03:07.882523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.7ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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 (3.0ms) Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 0.9ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 13:03:07.906957"], ["updated_at", "2015-10-30 13:03:07.906957"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:03:07.910731"], ["updated_at", "2015-10-30 13:03:07.910731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.922056"], ["updated_at", "2015-10-30 13:03:07.922056"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.2ms) 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]] SQL (0.3ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Message Load (0.7ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:03:07.972442"], ["updated_at", "2015-10-30 13:03:07.972442"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.8ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.987793"], ["updated_at", "2015-10-30 13:03:07.987793"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.3ms) 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"]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 4ms (ActiveRecord: 0.5ms) Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (1.8ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 13:03:08.265760"], ["updated_at", "2015-10-30 13:03:08.265760"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-30 13:03:08.269797"], ["updated_at", "2015-10-30 13:03:08.269797"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.3ms) 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.276059"], ["updated_at", "2015-10-30 13:03:08.276059"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.285680"], ["updated_at", "2015-10-30 13:03:08.285680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 13:03:08.296561"], ["updated_at", "2015-10-30 13:03:08.296561"]]  (0.2ms) SELECT "users"."id" FROM "users"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 13:03:08.300847"], ["updated_at", "2015-10-30 13:03:08.300847"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (1.0ms) 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.307776"], ["updated_at", "2015-10-30 13:03:08.307776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.323630"], ["updated_at", "2015-10-30 13:03:08.323630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.4ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:03:08.376914"], ["updated_at", "2015-10-30 13:03:08.376914"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.1ms) SQL (0.1ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 13:03:08.388058"], ["updated_at", "2015-10-30 13:03:08.388058"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 13:03:08.390149"], ["updated_at", "2015-10-30 13:03:08.390149"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.392794"], ["updated_at", "2015-10-30 13:03:08.392794"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.395484"], ["updated_at", "2015-10-30 13:03:08.395484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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.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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:03:08.412679"], ["updated_at", "2015-10-30 13:03:08.412679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.1ms) SQL (0.3ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-30 13:03:08.430427"], ["updated_at", "2015-10-30 13:03:08.430427"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:03:08.433244"], ["updated_at", "2015-10-30 13:03:08.433244"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.435378"], ["updated_at", "2015-10-30 13:03:08.435378"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-30 13:03:08.447972"], ["updated_at", "2015-10-30 13:03:08.447972"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-30 13:03:08.454127"], ["updated_at", "2015-10-30 13:03:08.454127"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.456606"], ["updated_at", "2015-10-30 13:03:08.456606"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-30 13:03:08.466036"], ["updated_at", "2015-10-30 13:03:08.466036"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-30 13:03:08.473664"], ["updated_at", "2015-10-30 13:03:08.473664"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 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 SQL (0.3ms) 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.479902"], ["updated_at", "2015-10-30 13:03:08.479902"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-30 13:03:08.492623"], ["updated_at", "2015-10-30 13:03:08.492623"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:03:08.503215"], ["updated_at", "2015-10-30 13:03:08.503215"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:03:08.506817"], ["updated_at", "2015-10-30 13:03:08.506817"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.508847"], ["updated_at", "2015-10-30 13:03:08.508847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-30 13:03:08.518009"], ["updated_at", "2015-10-30 13:03:08.518009"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-30 13:03:08.528372"], ["updated_at", "2015-10-30 13:03:08.528372"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.535149"], ["updated_at", "2015-10-30 13:03:08.535149"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:03:08.542540"], ["updated_at", "2015-10-30 13:03:08.542540"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:03:08.547084"], ["updated_at", "2015-10-30 13:03:08.547084"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.549648"], ["updated_at", "2015-10-30 13:03:08.549648"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:03:08.555187"], ["updated_at", "2015-10-30 13:03:08.555187"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.557859"], ["updated_at", "2015-10-30 13:03:08.557859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.6ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (2.7ms) 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"]]  (0.7ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.6ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:03:08.583504"], ["updated_at", "2015-10-30 13:03:08.583504"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (1.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.590211"], ["updated_at", "2015-10-30 13:03:08.590211"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.4ms) 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  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-30 13:03:08.608897"], ["updated_at", "2015-10-30 13:03:08.608897"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.2ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:03:08.637667"], ["updated_at", "2015-10-30 13:03:08.637667"]]  (0.4ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.6ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.653001"], ["updated_at", "2015-10-30 13:03:08.653001"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:03:08.669801"], ["updated_at", "2015-10-30 13:03:08.669801"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.673524"], ["updated_at", "2015-10-30 13:03:08.673524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:03:08.684954"], ["updated_at", "2015-10-30 13:03:08.684954"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.690150"], ["updated_at", "2015-10-30 13:03:08.690150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.3ms) begin transaction  (0.4ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.8ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:03:08.708798"], ["updated_at", "2015-10-30 13:03:08.708798"]]  (0.2ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.7ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:03:08.735834"], ["updated_at", "2015-10-30 13:03:08.735834"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 13:03:08.740375"], ["updated_at", "2015-10-30 13:03:08.740375"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.746846"], ["updated_at", "2015-10-30 13:03:08.746846"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 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 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 13:03:08.757028"], ["updated_at", "2015-10-30 13:03:08.757028"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 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 SQL (1.6ms) 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:03:08.761863"], ["updated_at", "2015-10-30 13:03:08.761863"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (1.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-10-30 13:03:08.794476"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.3ms) 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  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] SQL (0.0ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-10-30 13:03:08.805145"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) SQL (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.826393"], ["updated_at", "2015-10-30 13:03:08.826393"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.841703"], ["updated_at", "2015-10-30 13:03:08.841703"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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: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  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.846037"], ["updated_at", "2015-10-30 13:03:08.846037"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.848944"], ["updated_at", "2015-10-30 13:03:08.848944"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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 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  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]]  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.855343"], ["updated_at", "2015-10-30 13:03:08.855343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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: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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.859626"], ["updated_at", "2015-10-30 13:03:08.859626"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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.862283"], ["updated_at", "2015-10-30 13:03:08.862283"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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 (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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:03:08.880675"], ["updated_at", "2015-10-30 13:03:08.880675"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.882857"], ["updated_at", "2015-10-30 13:03:08.882857"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 13:03:08.895094"], ["updated_at", "2015-10-30 13:03:08.895094"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.899590"], ["updated_at", "2015-10-30 13:03:08.899590"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:03:08.911074"], ["updated_at", "2015-10-30 13:03:08.911074"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.3ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (1.2ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:35:52.097268"], ["updated_at", "2015-10-30 13:35:52.097268"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.8ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.117107"], ["updated_at", "2015-10-30 13:35:52.117107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) 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.2ms) Completed 200 OK in 19ms (Views: 11.5ms | ActiveRecord: 0.0ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 13:35:52.159807"], ["updated_at", "2015-10-30 13:35:52.159807"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:35:52.162109"], ["updated_at", "2015-10-30 13:35:52.162109"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.169503"], ["updated_at", "2015-10-30 13:35:52.169503"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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/index.json.jbuilder (10.0ms) Completed 200 OK in 11ms (Views: 10.1ms | ActiveRecord: 0.3ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 13:35:52.188041"], ["updated_at", "2015-10-30 13:35:52.188041"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:35:52.190035"], ["updated_at", "2015-10-30 13:35:52.190035"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.199588"], ["updated_at", "2015-10-30 13:35:52.199588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.4ms) 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]] Message Load (0.3ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.2ms) 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 (6.3ms) Completed 200 OK in 14ms (Views: 10.4ms | ActiveRecord: 1.0ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 13:35:52.221255"], ["updated_at", "2015-10-30 13:35:52.221255"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:35:52.223554"], ["updated_at", "2015-10-30 13:35:52.223554"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.230307"], ["updated_at", "2015-10-30 13:35:52.230307"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:35:52.245607"], ["updated_at", "2015-10-30 13:35:52.245607"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.248934"], ["updated_at", "2015-10-30 13:35:52.248934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.1ms) 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"]] SQL (0.0ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 10ms (ActiveRecord: 0.2ms) Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 13:35:52.435485"], ["updated_at", "2015-10-30 13:35:52.435485"]]  (0.0ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-30 13:35:52.437397"], ["updated_at", "2015-10-30 13:35:52.437397"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.440115"], ["updated_at", "2015-10-30 13:35:52.440115"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.442741"], ["updated_at", "2015-10-30 13:35:52.442741"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 13:35:52.448784"], ["updated_at", "2015-10-30 13:35:52.448784"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 13:35:52.451138"], ["updated_at", "2015-10-30 13:35:52.451138"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.453751"], ["updated_at", "2015-10-30 13:35:52.453751"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.456378"], ["updated_at", "2015-10-30 13:35:52.456378"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.3ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:35:52.495369"], ["updated_at", "2015-10-30 13:35:52.495369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.1ms) SQL (0.3ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 13:35:52.511765"], ["updated_at", "2015-10-30 13:35:52.511765"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 13:35:52.513911"], ["updated_at", "2015-10-30 13:35:52.513911"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.516723"], ["updated_at", "2015-10-30 13:35:52.516723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.519918"], ["updated_at", "2015-10-30 13:35:52.519918"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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: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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:35:52.534035"], ["updated_at", "2015-10-30 13:35:52.534035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-30 13:35:52.549633"], ["updated_at", "2015-10-30 13:35:52.549633"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:35:52.557175"], ["updated_at", "2015-10-30 13:35:52.557175"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.559618"], ["updated_at", "2015-10-30 13:35:52.559618"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-30 13:35:52.571739"], ["updated_at", "2015-10-30 13:35:52.571739"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-30 13:35:52.577685"], ["updated_at", "2015-10-30 13:35:52.577685"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.2ms) 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.580649"], ["updated_at", "2015-10-30 13:35:52.580649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-30 13:35:52.593346"], ["updated_at", "2015-10-30 13:35:52.593346"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-30 13:35:52.607263"], ["updated_at", "2015-10-30 13:35:52.607263"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.610203"], ["updated_at", "2015-10-30 13:35:52.610203"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-30 13:35:52.619146"], ["updated_at", "2015-10-30 13:35:52.619146"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:35:52.630659"], ["updated_at", "2015-10-30 13:35:52.630659"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:35:52.636703"], ["updated_at", "2015-10-30 13:35:52.636703"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.640462"], ["updated_at", "2015-10-30 13:35:52.640462"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-30 13:35:52.650066"], ["updated_at", "2015-10-30 13:35:52.650066"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-30 13:35:52.661968"], ["updated_at", "2015-10-30 13:35:52.661968"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.664515"], ["updated_at", "2015-10-30 13:35:52.664515"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:35:52.672223"], ["updated_at", "2015-10-30 13:35:52.672223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:35:52.675940"], ["updated_at", "2015-10-30 13:35:52.675940"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.678369"], ["updated_at", "2015-10-30 13:35:52.678369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:35:52.684881"], ["updated_at", "2015-10-30 13:35:52.684881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.688501"], ["updated_at", "2015-10-30 13:35:52.688501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:35:52.694925"], ["updated_at", "2015-10-30 13:35:52.694925"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.702251"], ["updated_at", "2015-10-30 13:35:52.702251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.2ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-30 13:35:52.709930"], ["updated_at", "2015-10-30 13:35:52.709930"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:35:52.723767"], ["updated_at", "2015-10-30 13:35:52.723767"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.726151"], ["updated_at", "2015-10-30 13:35:52.726151"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.6ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:35:52.734026"], ["updated_at", "2015-10-30 13:35:52.734026"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.738488"], ["updated_at", "2015-10-30 13:35:52.738488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:35:52.744913"], ["updated_at", "2015-10-30 13:35:52.744913"]]  (0.4ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.754085"], ["updated_at", "2015-10-30 13:35:52.754085"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:35:52.760698"], ["updated_at", "2015-10-30 13:35:52.760698"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:35:52.764845"], ["updated_at", "2015-10-30 13:35:52.764845"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 13:35:52.766620"], ["updated_at", "2015-10-30 13:35:52.766620"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.769395"], ["updated_at", "2015-10-30 13:35:52.769395"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 13:35:52.774281"], ["updated_at", "2015-10-30 13:35:52.774281"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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:35:52.776231"], ["updated_at", "2015-10-30 13:35:52.776231"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] SQL (0.2ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-10-30 13:35:52.786246"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-10-30 13:35:52.794776"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) SQL (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.822671"], ["updated_at", "2015-10-30 13:35:52.822671"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.829952"], ["updated_at", "2015-10-30 13:35:52.829952"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.834285"], ["updated_at", "2015-10-30 13:35:52.834285"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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.836727"], ["updated_at", "2015-10-30 13:35:52.836727"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]]  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" Wupee::NotificationTypeConfiguration Load (0.3ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.848565"], ["updated_at", "2015-10-30 13:35:52.848565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.853570"], ["updated_at", "2015-10-30 13:35:52.853570"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.857218"], ["updated_at", "2015-10-30 13:35:52.857218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:35:52.875558"], ["updated_at", "2015-10-30 13:35:52.875558"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.877788"], ["updated_at", "2015-10-30 13:35:52.877788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.0ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.2ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 13:35:52.890170"], ["updated_at", "2015-10-30 13:35:52.890170"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.893094"], ["updated_at", "2015-10-30 13:35:52.893094"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.0ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:35:52.904288"], ["updated_at", "2015-10-30 13:35:52.904288"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.2ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (1.6ms) rollback transaction  (0.4ms) begin transaction  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) 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"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.6ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:58:27.358109"], ["updated_at", "2015-10-30 13:58:27.358109"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.6ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.7ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.379364"], ["updated_at", "2015-10-30 13:58:27.379364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.2ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:58:27.414592"], ["updated_at", "2015-10-30 13:58:27.414592"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.417643"], ["updated_at", "2015-10-30 13:58:27.417643"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.1ms) 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)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:58:27.433901"], ["updated_at", "2015-10-30 13:58:27.433901"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.436938"], ["updated_at", "2015-10-30 13:58:27.436938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:58:27.466432"], ["updated_at", "2015-10-30 13:58:27.466432"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.473637"], ["updated_at", "2015-10-30 13:58:27.473637"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.2ms) 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 (10.8ms) Completed 200 OK in 27ms (Views: 24.7ms | ActiveRecord: 0.5ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 13:58:27.510170"], ["updated_at", "2015-10-30 13:58:27.510170"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:58:27.515376"], ["updated_at", "2015-10-30 13:58:27.515376"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.526732"], ["updated_at", "2015-10-30 13:58:27.526732"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.2ms) 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"]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) Wupee::Notification Load (0.2ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:58:27.703253"], ["updated_at", "2015-10-30 13:58:27.703253"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:58:27.716939"], ["updated_at", "2015-10-30 13:58:27.716939"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.1ms) SQL (0.1ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 13:58:27.748718"], ["updated_at", "2015-10-30 13:58:27.748718"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-30 13:58:27.751266"], ["updated_at", "2015-10-30 13:58:27.751266"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.756909"], ["updated_at", "2015-10-30 13:58:27.756909"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.761995"], ["updated_at", "2015-10-30 13:58:27.761995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.2ms) 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 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:58:27.781182"], ["updated_at", "2015-10-30 13:58:27.781182"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 13:58:27.791977"], ["updated_at", "2015-10-30 13:58:27.791977"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-30 13:58:27.793909"], ["updated_at", "2015-10-30 13:58:27.793909"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.796398"], ["updated_at", "2015-10-30 13:58:27.796398"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.801087"], ["updated_at", "2015-10-30 13:58:27.801087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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 (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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:58:27.809917"], ["updated_at", "2015-10-30 13:58:27.809917"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.818020"], ["updated_at", "2015-10-30 13:58:27.818020"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (1.6ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:58:27.832231"], ["updated_at", "2015-10-30 13:58:27.832231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:58:27.839998"], ["updated_at", "2015-10-30 13:58:27.839998"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.842691"], ["updated_at", "2015-10-30 13:58:27.842691"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:58:27.847654"], ["updated_at", "2015-10-30 13:58:27.847654"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.849327"], ["updated_at", "2015-10-30 13:58:27.849327"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:58:27.852745"], ["updated_at", "2015-10-30 13:58:27.852745"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:58:27.858214"], ["updated_at", "2015-10-30 13:58:27.858214"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.861424"], ["updated_at", "2015-10-30 13:58:27.861424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:58:27.869418"], ["updated_at", "2015-10-30 13:58:27.869418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.872465"], ["updated_at", "2015-10-30 13:58:27.872465"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:58:27.876003"], ["updated_at", "2015-10-30 13:58:27.876003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:58:27.885589"], ["updated_at", "2015-10-30 13:58:27.885589"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.891941"], ["updated_at", "2015-10-30 13:58:27.891941"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-30 13:58:27.900774"], ["updated_at", "2015-10-30 13:58:27.900774"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:58:27.910393"], ["updated_at", "2015-10-30 13:58:27.910393"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:58:27.914475"], ["updated_at", "2015-10-30 13:58:27.914475"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.919584"], ["updated_at", "2015-10-30 13:58:27.919584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 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 SQL (0.4ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:58:27.932692"], ["updated_at", "2015-10-30 13:58:27.932692"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.938865"], ["updated_at", "2015-10-30 13:58:27.938865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-30 13:58:27.945198"], ["updated_at", "2015-10-30 13:58:27.945198"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-30 13:58:27.951950"], ["updated_at", "2015-10-30 13:58:27.951950"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.954199"], ["updated_at", "2015-10-30 13:58:27.954199"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-30 13:58:27.962330"], ["updated_at", "2015-10-30 13:58:27.962330"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:58:27.974320"], ["updated_at", "2015-10-30 13:58:27.974320"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.976650"], ["updated_at", "2015-10-30 13:58:27.976650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-30 13:58:27.983422"], ["updated_at", "2015-10-30 13:58:27.983422"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (1.8ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-30 13:58:27.999509"], ["updated_at", "2015-10-30 13:58:27.999509"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-30 13:58:28.012508"], ["updated_at", "2015-10-30 13:58:28.012508"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-30 13:58:28.035789"], ["updated_at", "2015-10-30 13:58:28.035789"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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:28.039320"], ["updated_at", "2015-10-30 13:58:28.039320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-30 13:58:28.046253"], ["updated_at", "2015-10-30 13:58:28.046253"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 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 SQL (0.3ms) 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:58:28.051050"], ["updated_at", "2015-10-30 13:58:28.051050"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.0ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-10-30 13:58:28.063729"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.073670"], ["updated_at", "2015-10-30 13:58:28.073670"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.086382"], ["updated_at", "2015-10-30 13:58:28.086382"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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.089144"], ["updated_at", "2015-10-30 13:58:28.089144"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.102880"], ["updated_at", "2015-10-30 13:58:28.102880"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]]  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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.115980"], ["updated_at", "2015-10-30 13:58:28.115980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-30 13:58:28.128552"], ["updated_at", "2015-10-30 13:58:28.128552"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:58:28.130636"], ["updated_at", "2015-10-30 13:58:28.130636"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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:28.136660"], ["updated_at", "2015-10-30 13:58:28.136660"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.0ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-10-30 13:58:28.143794"], ["updated_at", "2015-10-30 13:58:28.143794"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.0ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-10-30 13:58:28.161610"], ["updated_at", "2015-10-30 13:58:28.161610"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.165152"], ["updated_at", "2015-10-30 13:58:28.165152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:00:07.755279"], ["updated_at", "2015-10-30 14:00:07.755279"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.9ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.8ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.775453"], ["updated_at", "2015-10-30 14:00:07.775453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as HTML Wupee::Notification Load (0.2ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:00:07.818343"], ["updated_at", "2015-10-30 14:00:07.818343"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.821971"], ["updated_at", "2015-10-30 14:00:07.821971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as HTML Wupee::Notification Load (0.1ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:00:07.839217"], ["updated_at", "2015-10-30 14:00:07.839217"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.841703"], ["updated_at", "2015-10-30 14:00:07.841703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as HTML Parameters: {"id"=>"1"} Wupee::Notification Load (0.2ms) 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)  (1.7ms) rollback transaction  (0.4ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:00:07.881723"], ["updated_at", "2015-10-30 14:00:07.881723"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.884353"], ["updated_at", "2015-10-30 14:00:07.884353"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as HTML Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.2ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 14:00:07.908002"], ["updated_at", "2015-10-30 14:00:07.908002"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:00:07.912105"], ["updated_at", "2015-10-30 14:00:07.912105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.929439"], ["updated_at", "2015-10-30 14:00:07.929439"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as HTML Wupee::Notification Load (0.1ms) 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"]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:00:08.100625"], ["updated_at", "2015-10-30 14:00:08.100625"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:00:08.114940"], ["updated_at", "2015-10-30 14:00:08.114940"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.3ms) SQL (0.1ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:00:08.148664"], ["updated_at", "2015-10-30 14:00:08.148664"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-30 14:00:08.151577"], ["updated_at", "2015-10-30 14:00:08.151577"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.154201"], ["updated_at", "2015-10-30 14:00:08.154201"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.157330"], ["updated_at", "2015-10-30 14:00:08.157330"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.0ms) 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 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  (1.4ms) rollback transaction  (0.4ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:00:08.179351"], ["updated_at", "2015-10-30 14:00:08.179351"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:00:08.187981"], ["updated_at", "2015-10-30 14:00:08.187981"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-30 14:00:08.190291"], ["updated_at", "2015-10-30 14:00:08.190291"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.192962"], ["updated_at", "2015-10-30 14:00:08.192962"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.196745"], ["updated_at", "2015-10-30 14:00:08.196745"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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 (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  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:00:08.205886"], ["updated_at", "2015-10-30 14:00:08.205886"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.224326"], ["updated_at", "2015-10-30 14:00:08.224326"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.2ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:00:08.235435"], ["updated_at", "2015-10-30 14:00:08.235435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:00:08.239531"], ["updated_at", "2015-10-30 14:00:08.239531"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.241963"], ["updated_at", "2015-10-30 14:00:08.241963"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:00:08.248040"], ["updated_at", "2015-10-30 14:00:08.248040"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.249652"], ["updated_at", "2015-10-30 14:00:08.249652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:00:08.254685"], ["updated_at", "2015-10-30 14:00:08.254685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:00:08.259868"], ["updated_at", "2015-10-30 14:00:08.259868"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.267228"], ["updated_at", "2015-10-30 14:00:08.267228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:00:08.276912"], ["updated_at", "2015-10-30 14:00:08.276912"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.279174"], ["updated_at", "2015-10-30 14:00:08.279174"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:00:08.282950"], ["updated_at", "2015-10-30 14:00:08.282950"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:00:08.286890"], ["updated_at", "2015-10-30 14:00:08.286890"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.289542"], ["updated_at", "2015-10-30 14:00:08.289542"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-30 14:00:08.297915"], ["updated_at", "2015-10-30 14:00:08.297915"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:00:08.309982"], ["updated_at", "2015-10-30 14:00:08.309982"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:00:08.319106"], ["updated_at", "2015-10-30 14:00:08.319106"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.323800"], ["updated_at", "2015-10-30 14:00:08.323800"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:00:08.329973"], ["updated_at", "2015-10-30 14:00:08.329973"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.332065"], ["updated_at", "2015-10-30 14:00:08.332065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-30 14:00:08.338529"], ["updated_at", "2015-10-30 14:00:08.338529"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-30 14:00:08.345289"], ["updated_at", "2015-10-30 14:00:08.345289"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.2ms) 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.347903"], ["updated_at", "2015-10-30 14:00:08.347903"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-30 14:00:08.359317"], ["updated_at", "2015-10-30 14:00:08.359317"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.8ms) 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"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:00:08.381444"], ["updated_at", "2015-10-30 14:00:08.381444"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.384075"], ["updated_at", "2015-10-30 14:00:08.384075"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-30 14:00:08.388775"], ["updated_at", "2015-10-30 14:00:08.388775"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-30 14:00:08.402146"], ["updated_at", "2015-10-30 14:00:08.402146"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-30 14:00:08.414451"], ["updated_at", "2015-10-30 14:00:08.414451"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-30 14:00:08.439287"], ["updated_at", "2015-10-30 14:00:08.439287"]]  (0.0ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.441746"], ["updated_at", "2015-10-30 14:00:08.441746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-30 14:00:08.446636"], ["updated_at", "2015-10-30 14:00:08.446636"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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:00:08.450630"], ["updated_at", "2015-10-30 14:00:08.450630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-10-30 14:00:08.459366"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.3ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.3ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.6ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.478000"], ["updated_at", "2015-10-30 14:00:08.478000"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.4ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.493275"], ["updated_at", "2015-10-30 14:00:08.493275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.497467"], ["updated_at", "2015-10-30 14:00:08.497467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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.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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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.510190"], ["updated_at", "2015-10-30 14:00:08.510190"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.0ms) 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  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]]  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" Wupee::NotificationTypeConfiguration Load (0.1ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.523117"], ["updated_at", "2015-10-30 14:00:08.523117"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-30 14:00:08.536126"], ["updated_at", "2015-10-30 14:00:08.536126"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:00:08.538275"], ["updated_at", "2015-10-30 14:00:08.538275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.545501"], ["updated_at", "2015-10-30 14:00:08.545501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.2ms) 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"]] SQL (0.2ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-10-30 14:00:08.554262"], ["updated_at", "2015-10-30 14:00:08.554262"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-10-30 14:00:08.575232"], ["updated_at", "2015-10-30 14:00:08.575232"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.6ms) 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.580379"], ["updated_at", "2015-10-30 14:00:08.580379"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.4ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.8ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:07.476237"], ["updated_at", "2015-10-30 14:04:07.476237"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.8ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.496519"], ["updated_at", "2015-10-30 14:04:07.496519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as HTML Wupee::Notification Load (0.2ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:07.534777"], ["updated_at", "2015-10-30 14:04:07.534777"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.539743"], ["updated_at", "2015-10-30 14:04:07.539743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as HTML Wupee::Notification Load (0.0ms) 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)  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:07.558390"], ["updated_at", "2015-10-30 14:04:07.558390"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.561216"], ["updated_at", "2015-10-30 14:04:07.561216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as HTML Parameters: {"id"=>"1"} Wupee::Notification Load (0.2ms) 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)  (0.8ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.5ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:07.597969"], ["updated_at", "2015-10-30 14:04:07.597969"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.600723"], ["updated_at", "2015-10-30 14:04:07.600723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as HTML Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.2ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 14:04:07.627223"], ["updated_at", "2015-10-30 14:04:07.627223"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:07.629863"], ["updated_at", "2015-10-30 14:04:07.629863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.646317"], ["updated_at", "2015-10-30 14:04:07.646317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as HTML Wupee::Notification Load (0.2ms) 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"]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:07.823919"], ["updated_at", "2015-10-30 14:04:07.823919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:07.840685"], ["updated_at", "2015-10-30 14:04:07.840685"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.1ms) SQL (0.1ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:04:07.873077"], ["updated_at", "2015-10-30 14:04:07.873077"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-30 14:04:07.875753"], ["updated_at", "2015-10-30 14:04:07.875753"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.878376"], ["updated_at", "2015-10-30 14:04:07.878376"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.881887"], ["updated_at", "2015-10-30 14:04:07.881887"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.1ms) SQL (0.2ms) 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.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  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:07.905617"], ["updated_at", "2015-10-30 14:04:07.905617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:04:07.915493"], ["updated_at", "2015-10-30 14:04:07.915493"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-30 14:04:07.917859"], ["updated_at", "2015-10-30 14:04:07.917859"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.920516"], ["updated_at", "2015-10-30 14:04:07.920516"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.925607"], ["updated_at", "2015-10-30 14:04:07.925607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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 (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  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:07.934345"], ["updated_at", "2015-10-30 14:04:07.934345"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.951412"], ["updated_at", "2015-10-30 14:04:07.951412"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:07.960573"], ["updated_at", "2015-10-30 14:04:07.960573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:07.964595"], ["updated_at", "2015-10-30 14:04:07.964595"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.966999"], ["updated_at", "2015-10-30 14:04:07.966999"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:07.974020"], ["updated_at", "2015-10-30 14:04:07.974020"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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:07.975848"], ["updated_at", "2015-10-30 14:04:07.975848"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:07.982412"], ["updated_at", "2015-10-30 14:04:07.982412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.6ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:07.990488"], ["updated_at", "2015-10-30 14:04:07.990488"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.000084"], ["updated_at", "2015-10-30 14:04:08.000084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:08.006713"], ["updated_at", "2015-10-30 14:04:08.006713"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.008569"], ["updated_at", "2015-10-30 14:04:08.008569"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:08.011982"], ["updated_at", "2015-10-30 14:04:08.011982"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:08.016728"], ["updated_at", "2015-10-30 14:04:08.016728"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.019381"], ["updated_at", "2015-10-30 14:04:08.019381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-30 14:04:08.027702"], ["updated_at", "2015-10-30 14:04:08.027702"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:08.042273"], ["updated_at", "2015-10-30 14:04:08.042273"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:08.046371"], ["updated_at", "2015-10-30 14:04:08.046371"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.049254"], ["updated_at", "2015-10-30 14:04:08.049254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:08.063850"], ["updated_at", "2015-10-30 14:04:08.063850"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.066003"], ["updated_at", "2015-10-30 14:04:08.066003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-30 14:04:08.072493"], ["updated_at", "2015-10-30 14:04:08.072493"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-30 14:04:08.078782"], ["updated_at", "2015-10-30 14:04:08.078782"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.081510"], ["updated_at", "2015-10-30 14:04:08.081510"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-30 14:04:08.090489"], ["updated_at", "2015-10-30 14:04:08.090489"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.5ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.4ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:08.115375"], ["updated_at", "2015-10-30 14:04:08.115375"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.118531"], ["updated_at", "2015-10-30 14:04:08.118531"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-30 14:04:08.123299"], ["updated_at", "2015-10-30 14:04:08.123299"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-30 14:04:08.135455"], ["updated_at", "2015-10-30 14:04:08.135455"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-30 14:04:08.148526"], ["updated_at", "2015-10-30 14:04:08.148526"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.8ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-30 14:04:08.177699"], ["updated_at", "2015-10-30 14:04:08.177699"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.179854"], ["updated_at", "2015-10-30 14:04:08.179854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-30 14:04:08.185448"], ["updated_at", "2015-10-30 14:04:08.185448"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.2ms) 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:04:08.187905"], ["updated_at", "2015-10-30 14:04:08.187905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-10-30 14:04:08.198783"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.5ms) 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 User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.218945"], ["updated_at", "2015-10-30 14:04:08.218945"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) SQL (0.1ms) 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.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  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.232771"], ["updated_at", "2015-10-30 14:04:08.232771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.236674"], ["updated_at", "2015-10-30 14:04:08.236674"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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.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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.249726"], ["updated_at", "2015-10-30 14:04:08.249726"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]]  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.265508"], ["updated_at", "2015-10-30 14:04:08.265508"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-30 14:04:08.279145"], ["updated_at", "2015-10-30 14:04:08.279145"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:08.281506"], ["updated_at", "2015-10-30 14:04:08.281506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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:08.288621"], ["updated_at", "2015-10-30 14:04:08.288621"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.0ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-10-30 14:04:08.296088"], ["updated_at", "2015-10-30 14:04:08.296088"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.0ms) 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"]] SQL (0.3ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-10-30 14:04:08.317478"], ["updated_at", "2015-10-30 14:04:08.317478"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.319963"], ["updated_at", "2015-10-30 14:04:08.319963"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.2ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (1.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:52.315938"], ["updated_at", "2015-10-30 14:04:52.315938"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (1.0ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (1.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.332447"], ["updated_at", "2015-10-30 14:04:52.332447"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as HTML Wupee::Notification Load (0.2ms) 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)  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:52.376044"], ["updated_at", "2015-10-30 14:04:52.376044"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.378581"], ["updated_at", "2015-10-30 14:04:52.378581"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as HTML Wupee::Notification Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:52.395838"], ["updated_at", "2015-10-30 14:04:52.395838"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.398310"], ["updated_at", "2015-10-30 14:04:52.398310"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as HTML Parameters: {"id"=>"1"} Wupee::Notification Load (0.2ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:52.427843"], ["updated_at", "2015-10-30 14:04:52.427843"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.434827"], ["updated_at", "2015-10-30 14:04:52.434827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as HTML Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.2ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 14:04:52.458963"], ["updated_at", "2015-10-30 14:04:52.458963"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:52.461791"], ["updated_at", "2015-10-30 14:04:52.461791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.471053"], ["updated_at", "2015-10-30 14:04:52.471053"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as HTML Wupee::Notification Load (0.6ms) 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"]] SQL (0.3ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 5ms (ActiveRecord: 0.8ms) Wupee::Notification Load (0.4ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (1.3ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:52.637243"], ["updated_at", "2015-10-30 14:04:52.637243"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:52.651343"], ["updated_at", "2015-10-30 14:04:52.651343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.1ms) SQL (0.1ms) 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  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:04:52.684658"], ["updated_at", "2015-10-30 14:04:52.684658"]]  (0.2ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-30 14:04:52.688168"], ["updated_at", "2015-10-30 14:04:52.688168"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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.697808"], ["updated_at", "2015-10-30 14:04:52.697808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.702834"], ["updated_at", "2015-10-30 14:04:52.702834"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.1ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:52.718046"], ["updated_at", "2015-10-30 14:04:52.718046"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:04:52.728160"], ["updated_at", "2015-10-30 14:04:52.728160"]]  (0.2ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-30 14:04:52.732436"], ["updated_at", "2015-10-30 14:04:52.732436"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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.736683"], ["updated_at", "2015-10-30 14:04:52.736683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.741252"], ["updated_at", "2015-10-30 14:04:52.741252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.2ms) SQL (0.3ms) 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 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:52.754134"], ["updated_at", "2015-10-30 14:04:52.754134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.763795"], ["updated_at", "2015-10-30 14:04:52.763795"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:52.774341"], ["updated_at", "2015-10-30 14:04:52.774341"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:52.778203"], ["updated_at", "2015-10-30 14:04:52.778203"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.780488"], ["updated_at", "2015-10-30 14:04:52.780488"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:52.787946"], ["updated_at", "2015-10-30 14:04:52.787946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.790956"], ["updated_at", "2015-10-30 14:04:52.790956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:52.795162"], ["updated_at", "2015-10-30 14:04:52.795162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:52.799445"], ["updated_at", "2015-10-30 14:04:52.799445"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.801747"], ["updated_at", "2015-10-30 14:04:52.801747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 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 SQL (0.4ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:52.817214"], ["updated_at", "2015-10-30 14:04:52.817214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.819925"], ["updated_at", "2015-10-30 14:04:52.819925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:52.823794"], ["updated_at", "2015-10-30 14:04:52.823794"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:52.827712"], ["updated_at", "2015-10-30 14:04:52.827712"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.830036"], ["updated_at", "2015-10-30 14:04:52.830036"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-30 14:04:52.837895"], ["updated_at", "2015-10-30 14:04:52.837895"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:52.849052"], ["updated_at", "2015-10-30 14:04:52.849052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:52.855641"], ["updated_at", "2015-10-30 14:04:52.855641"]]  (0.4ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.866068"], ["updated_at", "2015-10-30 14:04:52.866068"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:52.873122"], ["updated_at", "2015-10-30 14:04:52.873122"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.874869"], ["updated_at", "2015-10-30 14:04:52.874869"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-30 14:04:52.881301"], ["updated_at", "2015-10-30 14:04:52.881301"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-30 14:04:52.888601"], ["updated_at", "2015-10-30 14:04:52.888601"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.891875"], ["updated_at", "2015-10-30 14:04:52.891875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-30 14:04:52.901671"], ["updated_at", "2015-10-30 14:04:52.901671"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:52.924015"], ["updated_at", "2015-10-30 14:04:52.924015"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.926729"], ["updated_at", "2015-10-30 14:04:52.926729"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-30 14:04:52.931142"], ["updated_at", "2015-10-30 14:04:52.931142"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-30 14:04:52.942984"], ["updated_at", "2015-10-30 14:04:52.942984"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-30 14:04:52.955429"], ["updated_at", "2015-10-30 14:04:52.955429"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.8ms) 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"]]  (0.4ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-30 14:04:52.982048"], ["updated_at", "2015-10-30 14:04:52.982048"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.984254"], ["updated_at", "2015-10-30 14:04:52.984254"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-30 14:04:52.990486"], ["updated_at", "2015-10-30 14:04:52.990486"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.2ms) 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:04:52.992938"], ["updated_at", "2015-10-30 14:04:52.992938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.0ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-10-30 14:04:53.004454"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.5ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.020934"], ["updated_at", "2015-10-30 14:04:53.020934"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) SQL (0.1ms) 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.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  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.036794"], ["updated_at", "2015-10-30 14:04:53.036794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.040145"], ["updated_at", "2015-10-30 14:04:53.040145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.052137"], ["updated_at", "2015-10-30 14:04:53.052137"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]]  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.066816"], ["updated_at", "2015-10-30 14:04:53.066816"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-30 14:04:53.080894"], ["updated_at", "2015-10-30 14:04:53.080894"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:53.083179"], ["updated_at", "2015-10-30 14:04:53.083179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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:53.090753"], ["updated_at", "2015-10-30 14:04:53.090753"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.0ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.2ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-10-30 14:04:53.098491"], ["updated_at", "2015-10-30 14:04:53.098491"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.0ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-10-30 14:04:53.119474"], ["updated_at", "2015-10-30 14:04:53.119474"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.3ms) 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:53.124790"], ["updated_at", "2015-10-30 14:04:53.124790"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.3ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:32:45.205419"], ["updated_at", "2015-10-30 14:32:45.205419"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.8ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.226502"], ["updated_at", "2015-10-30 14:32:45.226502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.2ms) 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)  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:32:45.265501"], ["updated_at", "2015-10-30 14:32:45.265501"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.269455"], ["updated_at", "2015-10-30 14:32:45.269455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.1ms) 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)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:32:45.288611"], ["updated_at", "2015-10-30 14:32:45.288611"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.291778"], ["updated_at", "2015-10-30 14:32:45.291778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.2ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:32:45.325632"], ["updated_at", "2015-10-30 14:32:45.325632"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.327874"], ["updated_at", "2015-10-30 14:32:45.327874"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered wupee/api/notifications/show.json.jbuilder (9.4ms) Completed 500 Internal Server Error in 23ms (ActiveRecord: 0.4ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 14:32:45.360018"], ["updated_at", "2015-10-30 14:32:45.360018"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:32:45.362510"], ["updated_at", "2015-10-30 14:32:45.362510"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.368806"], ["updated_at", "2015-10-30 14:32:45.368806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.2ms) 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"]] SQL (0.0ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 5ms (ActiveRecord: 0.2ms) Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:32:45.562045"], ["updated_at", "2015-10-30 14:32:45.562045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:32:45.578871"], ["updated_at", "2015-10-30 14:32:45.578871"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.2ms) SQL (0.1ms) 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  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:32:45.613086"], ["updated_at", "2015-10-30 14:32:45.613086"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-30 14:32:45.615471"], ["updated_at", "2015-10-30 14:32:45.615471"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.617956"], ["updated_at", "2015-10-30 14:32:45.617956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.625987"], ["updated_at", "2015-10-30 14:32:45.625987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.1ms) SQL (0.2ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:32:45.645090"], ["updated_at", "2015-10-30 14:32:45.645090"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:32:45.653289"], ["updated_at", "2015-10-30 14:32:45.653289"]]  (0.0ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-30 14:32:45.655154"], ["updated_at", "2015-10-30 14:32:45.655154"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.657559"], ["updated_at", "2015-10-30 14:32:45.657559"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.662610"], ["updated_at", "2015-10-30 14:32:45.662610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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: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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:32:45.670004"], ["updated_at", "2015-10-30 14:32:45.670004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.687822"], ["updated_at", "2015-10-30 14:32:45.687822"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:32:45.696542"], ["updated_at", "2015-10-30 14:32:45.696542"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:32:45.700116"], ["updated_at", "2015-10-30 14:32:45.700116"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.702235"], ["updated_at", "2015-10-30 14:32:45.702235"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:32:45.708334"], ["updated_at", "2015-10-30 14:32:45.708334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.711769"], ["updated_at", "2015-10-30 14:32:45.711769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:32:45.715724"], ["updated_at", "2015-10-30 14:32:45.715724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:32:45.720668"], ["updated_at", "2015-10-30 14:32:45.720668"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.729729"], ["updated_at", "2015-10-30 14:32:45.729729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:32:45.737425"], ["updated_at", "2015-10-30 14:32:45.737425"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.739251"], ["updated_at", "2015-10-30 14:32:45.739251"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:32:45.743012"], ["updated_at", "2015-10-30 14:32:45.743012"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:32:45.747079"], ["updated_at", "2015-10-30 14:32:45.747079"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.749236"], ["updated_at", "2015-10-30 14:32:45.749236"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-30 14:32:45.756515"], ["updated_at", "2015-10-30 14:32:45.756515"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:32:45.769310"], ["updated_at", "2015-10-30 14:32:45.769310"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:32:45.781798"], ["updated_at", "2015-10-30 14:32:45.781798"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.784226"], ["updated_at", "2015-10-30 14:32:45.784226"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:32:45.790195"], ["updated_at", "2015-10-30 14:32:45.790195"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.791955"], ["updated_at", "2015-10-30 14:32:45.791955"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-30 14:32:45.797332"], ["updated_at", "2015-10-30 14:32:45.797332"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-30 14:32:45.803088"], ["updated_at", "2015-10-30 14:32:45.803088"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.3ms) 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.806235"], ["updated_at", "2015-10-30 14:32:45.806235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-30 14:32:45.816146"], ["updated_at", "2015-10-30 14:32:45.816146"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.3ms) 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  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:32:45.836745"], ["updated_at", "2015-10-30 14:32:45.836745"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.839191"], ["updated_at", "2015-10-30 14:32:45.839191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-30 14:32:45.844130"], ["updated_at", "2015-10-30 14:32:45.844130"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-30 14:32:45.854280"], ["updated_at", "2015-10-30 14:32:45.854280"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-30 14:32:45.866516"], ["updated_at", "2015-10-30 14:32:45.866516"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.3ms) 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"]]  (0.6ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-30 14:32:45.895138"], ["updated_at", "2015-10-30 14:32:45.895138"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.897574"], ["updated_at", "2015-10-30 14:32:45.897574"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-30 14:32:45.902224"], ["updated_at", "2015-10-30 14:32:45.902224"]]  (0.0ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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:32:45.904181"], ["updated_at", "2015-10-30 14:32:45.904181"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-10-30 14:32:45.915246"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] SQL (0.2ms) 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]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.3ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.932304"], ["updated_at", "2015-10-30 14:32:45.932304"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) SQL (0.1ms) 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.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  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.946917"], ["updated_at", "2015-10-30 14:32:45.946917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.954107"], ["updated_at", "2015-10-30 14:32:45.954107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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: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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.967179"], ["updated_at", "2015-10-30 14:32:45.967179"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]]  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.981995"], ["updated_at", "2015-10-30 14:32:45.981995"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-30 14:32:45.994951"], ["updated_at", "2015-10-30 14:32:45.994951"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:32:45.997417"], ["updated_at", "2015-10-30 14:32:45.997417"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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:46.004086"], ["updated_at", "2015-10-30 14:32:46.004086"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.0ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-10-30 14:32:46.011455"], ["updated_at", "2015-10-30 14:32:46.011455"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.0ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-10-30 14:32:46.029527"], ["updated_at", "2015-10-30 14:32:46.029527"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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:46.032901"], ["updated_at", "2015-10-30 14:32:46.032901"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (0.8ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.2ms) rollback transaction  (0.3ms) begin transaction  (0.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:40:42.374138"], ["updated_at", "2015-10-30 14:40:42.374138"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.8ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.393873"], ["updated_at", "2015-10-30 14:40:42.393873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 14:40:42.435460"], ["updated_at", "2015-10-30 14:40:42.435460"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:40:42.437768"], ["updated_at", "2015-10-30 14:40:42.437768"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.445381"], ["updated_at", "2015-10-30 14:40:42.445381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered wupee/api/notifications/index.json.jbuilder (8.9ms) Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.2ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 14:40:42.462245"], ["updated_at", "2015-10-30 14:40:42.462245"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:40:42.472995"], ["updated_at", "2015-10-30 14:40:42.472995"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.481295"], ["updated_at", "2015-10-30 14:40:42.481295"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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.7ms) Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.2ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 14:40:42.502913"], ["updated_at", "2015-10-30 14:40:42.502913"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:40:42.504940"], ["updated_at", "2015-10-30 14:40:42.504940"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.512204"], ["updated_at", "2015-10-30 14:40:42.512204"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:40:42.528306"], ["updated_at", "2015-10-30 14:40:42.528306"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.530511"], ["updated_at", "2015-10-30 14:40:42.530511"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.3ms) 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"]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 4ms (ActiveRecord: 0.4ms) Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:40:42.694449"], ["updated_at", "2015-10-30 14:40:42.694449"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-30 14:40:42.696471"], ["updated_at", "2015-10-30 14:40:42.696471"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.699516"], ["updated_at", "2015-10-30 14:40:42.699516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.702345"], ["updated_at", "2015-10-30 14:40:42.702345"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:40:42.708305"], ["updated_at", "2015-10-30 14:40:42.708305"]]  (0.0ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 14:40:42.710233"], ["updated_at", "2015-10-30 14:40:42.710233"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.712899"], ["updated_at", "2015-10-30 14:40:42.712899"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.715842"], ["updated_at", "2015-10-30 14:40:42.715842"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.0ms) SQL (0.2ms) 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 (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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:40:42.758763"], ["updated_at", "2015-10-30 14:40:42.758763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.2ms) 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  (1.2ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:40:42.774972"], ["updated_at", "2015-10-30 14:40:42.774972"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 14:40:42.776964"], ["updated_at", "2015-10-30 14:40:42.776964"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.779767"], ["updated_at", "2015-10-30 14:40:42.779767"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.782531"], ["updated_at", "2015-10-30 14:40:42.782531"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.0ms) 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: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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:40:42.796904"], ["updated_at", "2015-10-30 14:40:42.796904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.0ms) 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  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-30 14:40:42.808250"], ["updated_at", "2015-10-30 14:40:42.808250"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:40:42.811744"], ["updated_at", "2015-10-30 14:40:42.811744"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.7ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.818205"], ["updated_at", "2015-10-30 14:40:42.818205"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-30 14:40:42.835286"], ["updated_at", "2015-10-30 14:40:42.835286"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-30 14:40:42.841573"], ["updated_at", "2015-10-30 14:40:42.841573"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.844217"], ["updated_at", "2015-10-30 14:40:42.844217"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-30 14:40:42.854409"], ["updated_at", "2015-10-30 14:40:42.854409"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-30 14:40:42.865726"], ["updated_at", "2015-10-30 14:40:42.865726"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.874744"], ["updated_at", "2015-10-30 14:40:42.874744"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-30 14:40:42.883574"], ["updated_at", "2015-10-30 14:40:42.883574"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:40:42.893669"], ["updated_at", "2015-10-30 14:40:42.893669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:40:42.897944"], ["updated_at", "2015-10-30 14:40:42.897944"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.900375"], ["updated_at", "2015-10-30 14:40:42.900375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-30 14:40:42.908820"], ["updated_at", "2015-10-30 14:40:42.908820"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-30 14:40:42.916802"], ["updated_at", "2015-10-30 14:40:42.916802"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.926581"], ["updated_at", "2015-10-30 14:40:42.926581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:40:42.934634"], ["updated_at", "2015-10-30 14:40:42.934634"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:40:42.938674"], ["updated_at", "2015-10-30 14:40:42.938674"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.941649"], ["updated_at", "2015-10-30 14:40:42.941649"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:40:42.947232"], ["updated_at", "2015-10-30 14:40:42.947232"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.949101"], ["updated_at", "2015-10-30 14:40:42.949101"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:40:42.958137"], ["updated_at", "2015-10-30 14:40:42.958137"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.962132"], ["updated_at", "2015-10-30 14:40:42.962132"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-30 14:40:42.972554"], ["updated_at", "2015-10-30 14:40:42.972554"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:40:42.986538"], ["updated_at", "2015-10-30 14:40:42.986538"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.989375"], ["updated_at", "2015-10-30 14:40:42.989375"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:40:42.998437"], ["updated_at", "2015-10-30 14:40:42.998437"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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:43.000656"], ["updated_at", "2015-10-30 14:40:43.000656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:40:43.008995"], ["updated_at", "2015-10-30 14:40:43.008995"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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:43.012704"], ["updated_at", "2015-10-30 14:40:43.012704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (1.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:40:43.025347"], ["updated_at", "2015-10-30 14:40:43.025347"]]  (0.2ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.5ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:40:43.032725"], ["updated_at", "2015-10-30 14:40:43.032725"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 14:40:43.036428"], ["updated_at", "2015-10-30 14:40:43.036428"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.041123"], ["updated_at", "2015-10-30 14:40:43.041123"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 14:40:43.046862"], ["updated_at", "2015-10-30 14:40:43.046862"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 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 SQL (0.3ms) 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:40:43.056725"], ["updated_at", "2015-10-30 14:40:43.056725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-10-30 14:40:43.074192"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.6ms) 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 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-10-30 14:40:43.092759"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.4ms) SQL (0.1ms) 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  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.124257"], ["updated_at", "2015-10-30 14:40:43.124257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.136858"], ["updated_at", "2015-10-30 14:40:43.136858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.144329"], ["updated_at", "2015-10-30 14:40:43.144329"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.148923"], ["updated_at", "2015-10-30 14:40:43.148923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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 (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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]]  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.159448"], ["updated_at", "2015-10-30 14:40:43.159448"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.165839"], ["updated_at", "2015-10-30 14:40:43.165839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.170242"], ["updated_at", "2015-10-30 14:40:43.170242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:40:43.194654"], ["updated_at", "2015-10-30 14:40:43.194654"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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:43.198402"], ["updated_at", "2015-10-30 14:40:43.198402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.2ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.7ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:40:43.219192"], ["updated_at", "2015-10-30 14:40:43.219192"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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:43.224088"], ["updated_at", "2015-10-30 14:40:43.224088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.0ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.6ms) rollback transaction  (0.2ms) begin transaction  (0.6ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.3ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:40:43.246226"], ["updated_at", "2015-10-30 14:40:43.246226"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.8ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:41:34.690007"], ["updated_at", "2015-10-30 14:41:34.690007"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.7ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.718725"], ["updated_at", "2015-10-30 14:41:34.718725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.2ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:41:34.755463"], ["updated_at", "2015-10-30 14:41:34.755463"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.758118"], ["updated_at", "2015-10-30 14:41:34.758118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.1ms) 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)  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.0ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:41:34.784456"], ["updated_at", "2015-10-30 14:41:34.784456"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.789627"], ["updated_at", "2015-10-30 14:41:34.789627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.4ms) 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)  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:41:34.823598"], ["updated_at", "2015-10-30 14:41:34.823598"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.826704"], ["updated_at", "2015-10-30 14:41:34.826704"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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.4ms) Rendered wupee/api/notifications/show.json.jbuilder (11.7ms) Completed 200 OK in 24ms (Views: 21.5ms | ActiveRecord: 0.3ms)  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 14:41:34.860112"], ["updated_at", "2015-10-30 14:41:34.860112"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:41:34.866410"], ["updated_at", "2015-10-30 14:41:34.866410"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.879094"], ["updated_at", "2015-10-30 14:41:34.879094"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.1ms) 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"]] SQL (0.0ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) Wupee::Notification Load (0.2ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (1.0ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:41:35.089128"], ["updated_at", "2015-10-30 14:41:35.089128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:41:35.105221"], ["updated_at", "2015-10-30 14:41:35.105221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.8ms) SQL (0.2ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:41:35.145362"], ["updated_at", "2015-10-30 14:41:35.145362"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-30 14:41:35.151194"], ["updated_at", "2015-10-30 14:41:35.151194"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.158315"], ["updated_at", "2015-10-30 14:41:35.158315"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.161660"], ["updated_at", "2015-10-30 14:41:35.161660"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:41:35.176020"], ["updated_at", "2015-10-30 14:41:35.176020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:41:35.188664"], ["updated_at", "2015-10-30 14:41:35.188664"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-30 14:41:35.192041"], ["updated_at", "2015-10-30 14:41:35.192041"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.195986"], ["updated_at", "2015-10-30 14:41:35.195986"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.199172"], ["updated_at", "2015-10-30 14:41:35.199172"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.0ms) 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.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  (1.5ms) rollback transaction  (0.2ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:41:35.210400"], ["updated_at", "2015-10-30 14:41:35.210400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.224232"], ["updated_at", "2015-10-30 14:41:35.224232"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:41:35.234704"], ["updated_at", "2015-10-30 14:41:35.234704"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:41:35.239096"], ["updated_at", "2015-10-30 14:41:35.239096"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.242443"], ["updated_at", "2015-10-30 14:41:35.242443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:41:35.250802"], ["updated_at", "2015-10-30 14:41:35.250802"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.253039"], ["updated_at", "2015-10-30 14:41:35.253039"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (1.2ms) rollback transaction  (0.2ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:41:35.263382"], ["updated_at", "2015-10-30 14:41:35.263382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:41:35.268962"], ["updated_at", "2015-10-30 14:41:35.268962"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.271564"], ["updated_at", "2015-10-30 14:41:35.271564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:41:35.278575"], ["updated_at", "2015-10-30 14:41:35.278575"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.280542"], ["updated_at", "2015-10-30 14:41:35.280542"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:41:35.284245"], ["updated_at", "2015-10-30 14:41:35.284245"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:41:35.288148"], ["updated_at", "2015-10-30 14:41:35.288148"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.290839"], ["updated_at", "2015-10-30 14:41:35.290839"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-30 14:41:35.299716"], ["updated_at", "2015-10-30 14:41:35.299716"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:41:35.316397"], ["updated_at", "2015-10-30 14:41:35.316397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:41:35.323237"], ["updated_at", "2015-10-30 14:41:35.323237"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.326038"], ["updated_at", "2015-10-30 14:41:35.326038"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:41:35.331622"], ["updated_at", "2015-10-30 14:41:35.331622"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.333422"], ["updated_at", "2015-10-30 14:41:35.333422"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-30 14:41:35.340009"], ["updated_at", "2015-10-30 14:41:35.340009"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-30 14:41:35.350860"], ["updated_at", "2015-10-30 14:41:35.350860"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.354416"], ["updated_at", "2015-10-30 14:41:35.354416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-30 14:41:35.370462"], ["updated_at", "2015-10-30 14:41:35.370462"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:41:35.385702"], ["updated_at", "2015-10-30 14:41:35.385702"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.388209"], ["updated_at", "2015-10-30 14:41:35.388209"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-30 14:41:35.392875"], ["updated_at", "2015-10-30 14:41:35.392875"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-30 14:41:35.405747"], ["updated_at", "2015-10-30 14:41:35.405747"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-30 14:41:35.416761"], ["updated_at", "2015-10-30 14:41:35.416761"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.9ms) 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"]]  (0.4ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-30 14:41:35.446900"], ["updated_at", "2015-10-30 14:41:35.446900"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.449250"], ["updated_at", "2015-10-30 14:41:35.449250"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-30 14:41:35.454562"], ["updated_at", "2015-10-30 14:41:35.454562"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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:41:35.456792"], ["updated_at", "2015-10-30 14:41:35.456792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.3ms) 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  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.2ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-10-30 14:41:35.469924"], ["id", 3]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.3ms) 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  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.3ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.489036"], ["updated_at", "2015-10-30 14:41:35.489036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.510165"], ["updated_at", "2015-10-30 14:41:35.510165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.517008"], ["updated_at", "2015-10-30 14:41:35.517008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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: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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.532853"], ["updated_at", "2015-10-30 14:41:35.532853"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]]  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.546560"], ["updated_at", "2015-10-30 14:41:35.546560"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-30 14:41:35.561377"], ["updated_at", "2015-10-30 14:41:35.561377"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:41:35.563962"], ["updated_at", "2015-10-30 14:41:35.563962"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.570159"], ["updated_at", "2015-10-30 14:41:35.570159"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.0ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-10-30 14:41:35.577199"], ["updated_at", "2015-10-30 14:41:35.577199"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.5ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.0ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (3.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.2ms) rollback transaction  (0.5ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (4.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-10-30 14:41:35.606594"], ["updated_at", "2015-10-30 14:41:35.606594"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.617165"], ["updated_at", "2015-10-30 14:41:35.617165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.6ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:42:48.995149"], ["updated_at", "2015-10-30 14:42:48.995149"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.7ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.015521"], ["updated_at", "2015-10-30 14:42:49.015521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 14:42:49.056312"], ["updated_at", "2015-10-30 14:42:49.056312"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:42:49.058587"], ["updated_at", "2015-10-30 14:42:49.058587"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.066184"], ["updated_at", "2015-10-30 14:42:49.066184"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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.5ms) Rendered wupee/api/notifications/index.json.jbuilder (12.7ms) Completed 200 OK in 14ms (Views: 12.8ms | ActiveRecord: 0.3ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 14:42:49.097646"], ["updated_at", "2015-10-30 14:42:49.097646"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:42:49.100773"], ["updated_at", "2015-10-30 14:42:49.100773"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.8ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.114671"], ["updated_at", "2015-10-30 14:42:49.114671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.2ms) 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]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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.5ms) Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.2ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 14:42:49.131089"], ["updated_at", "2015-10-30 14:42:49.131089"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:42:49.133345"], ["updated_at", "2015-10-30 14:42:49.133345"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.140135"], ["updated_at", "2015-10-30 14:42:49.140135"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:42:49.156796"], ["updated_at", "2015-10-30 14:42:49.156796"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.159335"], ["updated_at", "2015-10-30 14:42:49.159335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.2ms) 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"]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.2ms) Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:42:49.337823"], ["updated_at", "2015-10-30 14:42:49.337823"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-30 14:42:49.340011"], ["updated_at", "2015-10-30 14:42:49.340011"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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.343335"], ["updated_at", "2015-10-30 14:42:49.343335"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.347463"], ["updated_at", "2015-10-30 14:42:49.347463"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:42:49.353658"], ["updated_at", "2015-10-30 14:42:49.353658"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 14:42:49.355832"], ["updated_at", "2015-10-30 14:42:49.355832"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.358592"], ["updated_at", "2015-10-30 14:42:49.358592"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.362118"], ["updated_at", "2015-10-30 14:42:49.362118"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.2ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:42:49.401124"], ["updated_at", "2015-10-30 14:42:49.401124"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.0ms) 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  (1.6ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:42:49.418076"], ["updated_at", "2015-10-30 14:42:49.418076"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 14:42:49.420937"], ["updated_at", "2015-10-30 14:42:49.420937"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.423714"], ["updated_at", "2015-10-30 14:42:49.423714"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.426644"], ["updated_at", "2015-10-30 14:42:49.426644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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 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  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:42:49.442814"], ["updated_at", "2015-10-30 14:42:49.442814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-30 14:42:49.456482"], ["updated_at", "2015-10-30 14:42:49.456482"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:42:49.463094"], ["updated_at", "2015-10-30 14:42:49.463094"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.470396"], ["updated_at", "2015-10-30 14:42:49.470396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-30 14:42:49.484780"], ["updated_at", "2015-10-30 14:42:49.484780"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-30 14:42:49.491593"], ["updated_at", "2015-10-30 14:42:49.491593"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 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 SQL (0.2ms) 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.497987"], ["updated_at", "2015-10-30 14:42:49.497987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-30 14:42:49.509096"], ["updated_at", "2015-10-30 14:42:49.509096"]]  (0.5ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-30 14:42:49.524679"], ["updated_at", "2015-10-30 14:42:49.524679"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.529176"], ["updated_at", "2015-10-30 14:42:49.529176"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-30 14:42:49.537813"], ["updated_at", "2015-10-30 14:42:49.537813"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:42:49.551456"], ["updated_at", "2015-10-30 14:42:49.551456"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:42:49.556174"], ["updated_at", "2015-10-30 14:42:49.556174"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.5ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.559696"], ["updated_at", "2015-10-30 14:42:49.559696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-30 14:42:49.573078"], ["updated_at", "2015-10-30 14:42:49.573078"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-30 14:42:49.581857"], ["updated_at", "2015-10-30 14:42:49.581857"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.584139"], ["updated_at", "2015-10-30 14:42:49.584139"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:42:49.591273"], ["updated_at", "2015-10-30 14:42:49.591273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:42:49.596013"], ["updated_at", "2015-10-30 14:42:49.596013"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.600551"], ["updated_at", "2015-10-30 14:42:49.600551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:42:49.607421"], ["updated_at", "2015-10-30 14:42:49.607421"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.611011"], ["updated_at", "2015-10-30 14:42:49.611011"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:42:49.624740"], ["updated_at", "2015-10-30 14:42:49.624740"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.628273"], ["updated_at", "2015-10-30 14:42:49.628273"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-30 14:42:49.633755"], ["updated_at", "2015-10-30 14:42:49.633755"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:42:49.648194"], ["updated_at", "2015-10-30 14:42:49.648194"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.650932"], ["updated_at", "2015-10-30 14:42:49.650932"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:42:49.663053"], ["updated_at", "2015-10-30 14:42:49.663053"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.666224"], ["updated_at", "2015-10-30 14:42:49.666224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.0ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:42:49.673418"], ["updated_at", "2015-10-30 14:42:49.673418"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.685370"], ["updated_at", "2015-10-30 14:42:49.685370"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:42:49.689576"], ["updated_at", "2015-10-30 14:42:49.689576"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:42:49.694102"], ["updated_at", "2015-10-30 14:42:49.694102"]]  (0.0ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 14:42:49.695782"], ["updated_at", "2015-10-30 14:42:49.695782"]]  (0.0ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.698424"], ["updated_at", "2015-10-30 14:42:49.698424"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 14:42:49.703307"], ["updated_at", "2015-10-30 14:42:49.703307"]]  (0.0ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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:42:49.705233"], ["updated_at", "2015-10-30 14:42:49.705233"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.3ms) 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  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] SQL (0.2ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-10-30 14:42:49.717507"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.5ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-10-30 14:42:49.736299"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) SQL (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.760870"], ["updated_at", "2015-10-30 14:42:49.760870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.768710"], ["updated_at", "2015-10-30 14:42:49.768710"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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: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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.772804"], ["updated_at", "2015-10-30 14:42:49.772804"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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.775350"], ["updated_at", "2015-10-30 14:42:49.775350"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]]  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.783916"], ["updated_at", "2015-10-30 14:42:49.783916"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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: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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.788019"], ["updated_at", "2015-10-30 14:42:49.788019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.790583"], ["updated_at", "2015-10-30 14:42:49.790583"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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.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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:42:49.807403"], ["updated_at", "2015-10-30 14:42:49.807403"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.811176"], ["updated_at", "2015-10-30 14:42:49.811176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.0ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:42:49.823497"], ["updated_at", "2015-10-30 14:42:49.823497"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.825977"], ["updated_at", "2015-10-30 14:42:49.825977"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.2ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.2ms) 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"]] SQL (0.2ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:42:49.838275"], ["updated_at", "2015-10-30 14:42:49.838275"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) 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"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) 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"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:43:04.484376"], ["updated_at", "2015-10-30 14:43:04.484376"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.7ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.496403"], ["updated_at", "2015-10-30 14:43:04.496403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 14:43:04.547210"], ["updated_at", "2015-10-30 14:43:04.547210"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:43:04.549991"], ["updated_at", "2015-10-30 14:43:04.549991"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.556727"], ["updated_at", "2015-10-30 14:43:04.556727"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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/index.json.jbuilder (10.2ms) Completed 200 OK in 12ms (Views: 10.3ms | ActiveRecord: 0.3ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 14:43:04.586332"], ["updated_at", "2015-10-30 14:43:04.586332"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:43:04.589506"], ["updated_at", "2015-10-30 14:43:04.589506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.608843"], ["updated_at", "2015-10-30 14:43:04.608843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.2ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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 (4.4ms) Completed 200 OK in 10ms (Views: 6.7ms | ActiveRecord: 0.4ms)  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 14:43:04.632437"], ["updated_at", "2015-10-30 14:43:04.632437"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:43:04.636559"], ["updated_at", "2015-10-30 14:43:04.636559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.650866"], ["updated_at", "2015-10-30 14:43:04.650866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] SQL (0.2ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Message Load (0.2ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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)  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:43:04.684781"], ["updated_at", "2015-10-30 14:43:04.684781"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.698740"], ["updated_at", "2015-10-30 14:43:04.698740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.4ms) 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"]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 5ms (ActiveRecord: 0.4ms) Wupee::Notification Load (0.2ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:43:04.903152"], ["updated_at", "2015-10-30 14:43:04.903152"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-30 14:43:04.905315"], ["updated_at", "2015-10-30 14:43:04.905315"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.908256"], ["updated_at", "2015-10-30 14:43:04.908256"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.911708"], ["updated_at", "2015-10-30 14:43:04.911708"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:43:04.917417"], ["updated_at", "2015-10-30 14:43:04.917417"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 14:43:04.919506"], ["updated_at", "2015-10-30 14:43:04.919506"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.922018"], ["updated_at", "2015-10-30 14:43:04.922018"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.924648"], ["updated_at", "2015-10-30 14:43:04.924648"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.1ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:43:04.961563"], ["updated_at", "2015-10-30 14:43:04.961563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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  (1.5ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:43:04.977728"], ["updated_at", "2015-10-30 14:43:04.977728"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 14:43:04.982271"], ["updated_at", "2015-10-30 14:43:04.982271"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.985596"], ["updated_at", "2015-10-30 14:43:04.985596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.988647"], ["updated_at", "2015-10-30 14:43:04.988647"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.0ms) 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.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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:43:05.002747"], ["updated_at", "2015-10-30 14:43:05.002747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.0ms) 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  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-30 14:43:05.019745"], ["updated_at", "2015-10-30 14:43:05.019745"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:43:05.027360"], ["updated_at", "2015-10-30 14:43:05.027360"]]  (0.4ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.036574"], ["updated_at", "2015-10-30 14:43:05.036574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-30 14:43:05.052095"], ["updated_at", "2015-10-30 14:43:05.052095"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-30 14:43:05.058799"], ["updated_at", "2015-10-30 14:43:05.058799"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.3ms) 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.064702"], ["updated_at", "2015-10-30 14:43:05.064702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (24.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-30 14:43:05.104229"], ["updated_at", "2015-10-30 14:43:05.104229"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-30 14:43:05.113753"], ["updated_at", "2015-10-30 14:43:05.113753"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.117294"], ["updated_at", "2015-10-30 14:43:05.117294"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-30 14:43:05.128498"], ["updated_at", "2015-10-30 14:43:05.128498"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:43:05.146278"], ["updated_at", "2015-10-30 14:43:05.146278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:43:05.151583"], ["updated_at", "2015-10-30 14:43:05.151583"]]  (0.4ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.163696"], ["updated_at", "2015-10-30 14:43:05.163696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-30 14:43:05.172693"], ["updated_at", "2015-10-30 14:43:05.172693"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-30 14:43:05.183519"], ["updated_at", "2015-10-30 14:43:05.183519"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.187132"], ["updated_at", "2015-10-30 14:43:05.187132"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:43:05.202108"], ["updated_at", "2015-10-30 14:43:05.202108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (2.9ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:43:05.223639"], ["updated_at", "2015-10-30 14:43:05.223639"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.231102"], ["updated_at", "2015-10-30 14:43:05.231102"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:43:05.236211"], ["updated_at", "2015-10-30 14:43:05.236211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.240064"], ["updated_at", "2015-10-30 14:43:05.240064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:43:05.249160"], ["updated_at", "2015-10-30 14:43:05.249160"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.251687"], ["updated_at", "2015-10-30 14:43:05.251687"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.2ms) 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  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-30 14:43:05.264088"], ["updated_at", "2015-10-30 14:43:05.264088"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:43:05.276723"], ["updated_at", "2015-10-30 14:43:05.276723"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.280602"], ["updated_at", "2015-10-30 14:43:05.280602"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:43:05.292966"], ["updated_at", "2015-10-30 14:43:05.292966"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.298933"], ["updated_at", "2015-10-30 14:43:05.298933"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.0ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:43:05.309249"], ["updated_at", "2015-10-30 14:43:05.309249"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.317029"], ["updated_at", "2015-10-30 14:43:05.317029"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:43:05.321197"], ["updated_at", "2015-10-30 14:43:05.321197"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:43:05.325662"], ["updated_at", "2015-10-30 14:43:05.325662"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 14:43:05.327928"], ["updated_at", "2015-10-30 14:43:05.327928"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.330943"], ["updated_at", "2015-10-30 14:43:05.330943"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 14:43:05.336972"], ["updated_at", "2015-10-30 14:43:05.336972"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (3.8ms) SELECT 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 SQL (0.1ms) 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:43:05.344037"], ["updated_at", "2015-10-30 14:43:05.344037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.6ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-10-30 14:43:05.359156"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] SQL (0.0ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-10-30 14:43:05.369304"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) SQL (0.1ms) 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  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.393104"], ["updated_at", "2015-10-30 14:43:05.393104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.401392"], ["updated_at", "2015-10-30 14:43:05.401392"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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: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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.405441"], ["updated_at", "2015-10-30 14:43:05.405441"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.408058"], ["updated_at", "2015-10-30 14:43:05.408058"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]]  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.416754"], ["updated_at", "2015-10-30 14:43:05.416754"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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: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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.420982"], ["updated_at", "2015-10-30 14:43:05.420982"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.423650"], ["updated_at", "2015-10-30 14:43:05.423650"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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: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  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:43:05.440293"], ["updated_at", "2015-10-30 14:43:05.440293"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.442753"], ["updated_at", "2015-10-30 14:43:05.442753"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:43:05.456061"], ["updated_at", "2015-10-30 14:43:05.456061"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.458677"], ["updated_at", "2015-10-30 14:43:05.458677"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:43:05.471335"], ["updated_at", "2015-10-30 14:43:05.471335"]]  (0.2ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.9ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:45:08.683091"], ["updated_at", "2015-10-30 14:45:08.683091"]]  (0.5ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.8ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.701850"], ["updated_at", "2015-10-30 14:45:08.701850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 14:45:08.741993"], ["updated_at", "2015-10-30 14:45:08.741993"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:45:08.744336"], ["updated_at", "2015-10-30 14:45:08.744336"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.751863"], ["updated_at", "2015-10-30 14:45:08.751863"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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/index.json.jbuilder (10.1ms) Completed 200 OK in 11ms (Views: 10.2ms | ActiveRecord: 0.3ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 14:45:08.779077"], ["updated_at", "2015-10-30 14:45:08.779077"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:45:08.782780"], ["updated_at", "2015-10-30 14:45:08.782780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.793516"], ["updated_at", "2015-10-30 14:45:08.793516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.2ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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.7ms) Completed 200 OK in 9ms (Views: 4.2ms | ActiveRecord: 0.3ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 14:45:08.815525"], ["updated_at", "2015-10-30 14:45:08.815525"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:45:08.817997"], ["updated_at", "2015-10-30 14:45:08.817997"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.824916"], ["updated_at", "2015-10-30 14:45:08.824916"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:45:08.840384"], ["updated_at", "2015-10-30 14:45:08.840384"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.842821"], ["updated_at", "2015-10-30 14:45:08.842821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.2ms) 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"]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 4ms (ActiveRecord: 0.3ms) Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:45:09.058175"], ["updated_at", "2015-10-30 14:45:09.058175"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-30 14:45:09.061153"], ["updated_at", "2015-10-30 14:45:09.061153"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.4ms) 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.067086"], ["updated_at", "2015-10-30 14:45:09.067086"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.073281"], ["updated_at", "2015-10-30 14:45:09.073281"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:45:09.082658"], ["updated_at", "2015-10-30 14:45:09.082658"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 14:45:09.086425"], ["updated_at", "2015-10-30 14:45:09.086425"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.090940"], ["updated_at", "2015-10-30 14:45:09.090940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.096135"], ["updated_at", "2015-10-30 14:45:09.096135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.2ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:45:09.160498"], ["updated_at", "2015-10-30 14:45:09.160498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:45:09.174312"], ["updated_at", "2015-10-30 14:45:09.174312"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 14:45:09.177155"], ["updated_at", "2015-10-30 14:45:09.177155"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.3ms) 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.182217"], ["updated_at", "2015-10-30 14:45:09.182217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.190619"], ["updated_at", "2015-10-30 14:45:09.190619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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 (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  (3.0ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:45:09.219162"], ["updated_at", "2015-10-30 14:45:09.219162"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-30 14:45:09.232732"], ["updated_at", "2015-10-30 14:45:09.232732"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:45:09.239219"], ["updated_at", "2015-10-30 14:45:09.239219"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.244642"], ["updated_at", "2015-10-30 14:45:09.244642"]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-30 14:45:09.273272"], ["updated_at", "2015-10-30 14:45:09.273272"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-30 14:45:09.280745"], ["updated_at", "2015-10-30 14:45:09.280745"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.285466"], ["updated_at", "2015-10-30 14:45:09.285466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-30 14:45:09.295091"], ["updated_at", "2015-10-30 14:45:09.295091"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-30 14:45:09.301837"], ["updated_at", "2015-10-30 14:45:09.301837"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.2ms) 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.306948"], ["updated_at", "2015-10-30 14:45:09.306948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (1.4ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-30 14:45:09.327440"], ["updated_at", "2015-10-30 14:45:09.327440"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:45:09.340013"], ["updated_at", "2015-10-30 14:45:09.340013"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:45:09.344381"], ["updated_at", "2015-10-30 14:45:09.344381"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.346694"], ["updated_at", "2015-10-30 14:45:09.346694"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-30 14:45:09.354038"], ["updated_at", "2015-10-30 14:45:09.354038"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-30 14:45:09.363867"], ["updated_at", "2015-10-30 14:45:09.363867"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 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 SQL (0.2ms) 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.369628"], ["updated_at", "2015-10-30 14:45:09.369628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:45:09.382242"], ["updated_at", "2015-10-30 14:45:09.382242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:45:09.386671"], ["updated_at", "2015-10-30 14:45:09.386671"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.389834"], ["updated_at", "2015-10-30 14:45:09.389834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:45:09.395824"], ["updated_at", "2015-10-30 14:45:09.395824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.398551"], ["updated_at", "2015-10-30 14:45:09.398551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.6ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:45:09.406433"], ["updated_at", "2015-10-30 14:45:09.406433"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.409556"], ["updated_at", "2015-10-30 14:45:09.409556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-30 14:45:09.417653"], ["updated_at", "2015-10-30 14:45:09.417653"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.4ms) 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  (5.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:45:09.448151"], ["updated_at", "2015-10-30 14:45:09.448151"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.453536"], ["updated_at", "2015-10-30 14:45:09.453536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:45:09.462667"], ["updated_at", "2015-10-30 14:45:09.462667"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.467498"], ["updated_at", "2015-10-30 14:45:09.467498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:45:09.474538"], ["updated_at", "2015-10-30 14:45:09.474538"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.477563"], ["updated_at", "2015-10-30 14:45:09.477563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.3ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:45:09.490455"], ["updated_at", "2015-10-30 14:45:09.490455"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:45:09.494962"], ["updated_at", "2015-10-30 14:45:09.494962"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 14:45:09.497279"], ["updated_at", "2015-10-30 14:45:09.497279"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.500184"], ["updated_at", "2015-10-30 14:45:09.500184"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 14:45:09.505039"], ["updated_at", "2015-10-30 14:45:09.505039"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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:45:09.507110"], ["updated_at", "2015-10-30 14:45:09.507110"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-10-30 14:45:09.518382"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.3ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] SQL (0.3ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-10-30 14:45:09.533642"], ["id", 4]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.4ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) SQL (0.1ms) 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  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.563577"], ["updated_at", "2015-10-30 14:45:09.563577"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.572721"], ["updated_at", "2015-10-30 14:45:09.572721"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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: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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.577116"], ["updated_at", "2015-10-30 14:45:09.577116"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.580039"], ["updated_at", "2015-10-30 14:45:09.580039"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]]  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.589592"], ["updated_at", "2015-10-30 14:45:09.589592"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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: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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.593624"], ["updated_at", "2015-10-30 14:45:09.593624"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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.596309"], ["updated_at", "2015-10-30 14:45:09.596309"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:45:09.613206"], ["updated_at", "2015-10-30 14:45:09.613206"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.615518"], ["updated_at", "2015-10-30 14:45:09.615518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.0ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:45:09.628598"], ["updated_at", "2015-10-30 14:45:09.628598"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.630865"], ["updated_at", "2015-10-30 14:45:09.630865"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:45:09.642597"], ["updated_at", "2015-10-30 14:45:09.642597"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.6ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:50:03.378962"], ["updated_at", "2015-10-30 14:50:03.378962"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.6ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.397149"], ["updated_at", "2015-10-30 14:50:03.397149"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 14:50:03.434832"], ["updated_at", "2015-10-30 14:50:03.434832"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:50:03.436901"], ["updated_at", "2015-10-30 14:50:03.436901"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.443515"], ["updated_at", "2015-10-30 14:50:03.443515"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.2ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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.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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 14:50:03.472846"], ["updated_at", "2015-10-30 14:50:03.472846"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:50:03.476161"], ["updated_at", "2015-10-30 14:50:03.476161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.488029"], ["updated_at", "2015-10-30 14:50:03.488029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.2ms) 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]] 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)  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 14:50:03.520794"], ["updated_at", "2015-10-30 14:50:03.520794"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:50:03.522780"], ["updated_at", "2015-10-30 14:50:03.522780"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.529806"], ["updated_at", "2015-10-30 14:50:03.529806"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] SQL (0.1ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:50:03.557566"], ["updated_at", "2015-10-30 14:50:03.557566"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.562825"], ["updated_at", "2015-10-30 14:50:03.562825"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.2ms) 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"]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 6ms (ActiveRecord: 0.3ms) Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:50:03.748095"], ["updated_at", "2015-10-30 14:50:03.748095"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-30 14:50:03.750273"], ["updated_at", "2015-10-30 14:50:03.750273"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.753442"], ["updated_at", "2015-10-30 14:50:03.753442"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.756792"], ["updated_at", "2015-10-30 14:50:03.756792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:50:03.763444"], ["updated_at", "2015-10-30 14:50:03.763444"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 14:50:03.765732"], ["updated_at", "2015-10-30 14:50:03.765732"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.768498"], ["updated_at", "2015-10-30 14:50:03.768498"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.771567"], ["updated_at", "2015-10-30 14:50:03.771567"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.3ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:50:03.812100"], ["updated_at", "2015-10-30 14:50:03.812100"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.1ms) SQL (0.2ms) 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  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:50:03.829530"], ["updated_at", "2015-10-30 14:50:03.829530"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 14:50:03.832065"], ["updated_at", "2015-10-30 14:50:03.832065"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.834926"], ["updated_at", "2015-10-30 14:50:03.834926"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.837971"], ["updated_at", "2015-10-30 14:50:03.837971"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.0ms) 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.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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:50:03.852225"], ["updated_at", "2015-10-30 14:50:03.852225"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.1ms) SQL (0.1ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-30 14:50:03.870954"], ["updated_at", "2015-10-30 14:50:03.870954"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:50:03.877915"], ["updated_at", "2015-10-30 14:50:03.877915"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.880802"], ["updated_at", "2015-10-30 14:50:03.880802"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-30 14:50:03.895478"], ["updated_at", "2015-10-30 14:50:03.895478"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-30 14:50:03.903630"], ["updated_at", "2015-10-30 14:50:03.903630"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.2ms) 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:03.907162"], ["updated_at", "2015-10-30 14:50:03.907162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-30 14:50:03.921232"], ["updated_at", "2015-10-30 14:50:03.921232"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-30 14:50:03.932948"], ["updated_at", "2015-10-30 14:50:03.932948"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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:03.935615"], ["updated_at", "2015-10-30 14:50:03.935615"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-30 14:50:03.944388"], ["updated_at", "2015-10-30 14:50:03.944388"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:50:03.956167"], ["updated_at", "2015-10-30 14:50:03.956167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:50:03.963737"], ["updated_at", "2015-10-30 14:50:03.963737"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.969503"], ["updated_at", "2015-10-30 14:50:03.969503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-30 14:50:03.981148"], ["updated_at", "2015-10-30 14:50:03.981148"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-30 14:50:03.987460"], ["updated_at", "2015-10-30 14:50:03.987460"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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:03.990105"], ["updated_at", "2015-10-30 14:50:03.990105"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:50:03.998189"], ["updated_at", "2015-10-30 14:50:03.998189"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:50:04.002287"], ["updated_at", "2015-10-30 14:50:04.002287"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.007375"], ["updated_at", "2015-10-30 14:50:04.007375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:50:04.014769"], ["updated_at", "2015-10-30 14:50:04.014769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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:04.019833"], ["updated_at", "2015-10-30 14:50:04.019833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:50:04.030016"], ["updated_at", "2015-10-30 14:50:04.030016"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.033214"], ["updated_at", "2015-10-30 14:50:04.033214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-30 14:50:04.038364"], ["updated_at", "2015-10-30 14:50:04.038364"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:50:04.051271"], ["updated_at", "2015-10-30 14:50:04.051271"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.053849"], ["updated_at", "2015-10-30 14:50:04.053849"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:50:04.064962"], ["updated_at", "2015-10-30 14:50:04.064962"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.068581"], ["updated_at", "2015-10-30 14:50:04.068581"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:50:04.082955"], ["updated_at", "2015-10-30 14:50:04.082955"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.085953"], ["updated_at", "2015-10-30 14:50:04.085953"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:50:04.090025"], ["updated_at", "2015-10-30 14:50:04.090025"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:50:04.094804"], ["updated_at", "2015-10-30 14:50:04.094804"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 14:50:04.096952"], ["updated_at", "2015-10-30 14:50:04.096952"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.100076"], ["updated_at", "2015-10-30 14:50:04.100076"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 14:50:04.104822"], ["updated_at", "2015-10-30 14:50:04.104822"]]  (0.0ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.2ms) 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:50:04.107315"], ["updated_at", "2015-10-30 14:50:04.107315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-10-30 14:50:04.123249"], ["id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] SQL (0.0ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-10-30 14:50:04.135830"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) SQL (0.1ms) 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  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.162685"], ["updated_at", "2015-10-30 14:50:04.162685"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.170910"], ["updated_at", "2015-10-30 14:50:04.170910"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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.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  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.175542"], ["updated_at", "2015-10-30 14:50:04.175542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.179693"], ["updated_at", "2015-10-30 14:50:04.179693"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]]  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.187202"], ["updated_at", "2015-10-30 14:50:04.187202"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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: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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.191489"], ["updated_at", "2015-10-30 14:50:04.191489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.195055"], ["updated_at", "2015-10-30 14:50:04.195055"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:50:04.212271"], ["updated_at", "2015-10-30 14:50:04.212271"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.214503"], ["updated_at", "2015-10-30 14:50:04.214503"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.0ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:50:04.224829"], ["updated_at", "2015-10-30 14:50:04.224829"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.227711"], ["updated_at", "2015-10-30 14:50:04.227711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.0ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:50:04.239446"], ["updated_at", "2015-10-30 14:50:04.239446"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (1.3ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.4ms) SAVEPOINT active_record_1 SQL (1.5ms) 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"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:54:06.524589"], ["updated_at", "2015-10-30 14:54:06.524589"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.7ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.550959"], ["updated_at", "2015-10-30 14:54:06.550959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 14:54:06.590929"], ["updated_at", "2015-10-30 14:54:06.590929"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:54:06.594632"], ["updated_at", "2015-10-30 14:54:06.594632"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.603185"], ["updated_at", "2015-10-30 14:54:06.603185"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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 (3.3ms) Rendered wupee/api/notifications/index.json.jbuilder (11.1ms) Completed 200 OK in 12ms (Views: 11.2ms | ActiveRecord: 0.3ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 14:54:06.633897"], ["updated_at", "2015-10-30 14:54:06.633897"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:54:06.636948"], ["updated_at", "2015-10-30 14:54:06.636948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.651987"], ["updated_at", "2015-10-30 14:54:06.651987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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.6ms) Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.2ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 14:54:06.664335"], ["updated_at", "2015-10-30 14:54:06.664335"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:54:06.666694"], ["updated_at", "2015-10-30 14:54:06.666694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.673812"], ["updated_at", "2015-10-30 14:54:06.673812"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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)  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:54:06.689172"], ["updated_at", "2015-10-30 14:54:06.689172"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.691577"], ["updated_at", "2015-10-30 14:54:06.691577"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.2ms) 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"]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 5ms (ActiveRecord: 0.3ms) Wupee::Notification Load (0.2ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:54:06.902746"], ["updated_at", "2015-10-30 14:54:06.902746"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-30 14:54:06.906288"], ["updated_at", "2015-10-30 14:54:06.906288"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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:06.911208"], ["updated_at", "2015-10-30 14:54:06.911208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.916925"], ["updated_at", "2015-10-30 14:54:06.916925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:54:06.924859"], ["updated_at", "2015-10-30 14:54:06.924859"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 14:54:06.928135"], ["updated_at", "2015-10-30 14:54:06.928135"]]  (1.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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:06.942419"], ["updated_at", "2015-10-30 14:54:06.942419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.950057"], ["updated_at", "2015-10-30 14:54:06.950057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.2ms) SQL (0.2ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:54:07.015596"], ["updated_at", "2015-10-30 14:54:07.015596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:54:07.028612"], ["updated_at", "2015-10-30 14:54:07.028612"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 14:54:07.032278"], ["updated_at", "2015-10-30 14:54:07.032278"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.3ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.3ms) 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.043324"], ["updated_at", "2015-10-30 14:54:07.043324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.050700"], ["updated_at", "2015-10-30 14:54:07.050700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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 (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  (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:54:07.079244"], ["updated_at", "2015-10-30 14:54:07.079244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-30 14:54:07.093645"], ["updated_at", "2015-10-30 14:54:07.093645"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:54:07.097048"], ["updated_at", "2015-10-30 14:54:07.097048"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.8ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.103227"], ["updated_at", "2015-10-30 14:54:07.103227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.2ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.8ms) 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"]] SQL (0.3ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.3ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-30 14:54:07.128486"], ["updated_at", "2015-10-30 14:54:07.128486"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-30 14:54:07.139028"], ["updated_at", "2015-10-30 14:54:07.139028"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.141561"], ["updated_at", "2015-10-30 14:54:07.141561"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-30 14:54:07.150345"], ["updated_at", "2015-10-30 14:54:07.150345"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-30 14:54:07.157427"], ["updated_at", "2015-10-30 14:54:07.157427"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 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 SQL (0.2ms) 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.161847"], ["updated_at", "2015-10-30 14:54:07.161847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (1.5ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-30 14:54:07.184555"], ["updated_at", "2015-10-30 14:54:07.184555"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:54:07.196906"], ["updated_at", "2015-10-30 14:54:07.196906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:54:07.205236"], ["updated_at", "2015-10-30 14:54:07.205236"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.208367"], ["updated_at", "2015-10-30 14:54:07.208367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-30 14:54:07.219044"], ["updated_at", "2015-10-30 14:54:07.219044"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) 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"]]  (1.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-30 14:54:07.240074"], ["updated_at", "2015-10-30 14:54:07.240074"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.244023"], ["updated_at", "2015-10-30 14:54:07.244023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:54:07.258056"], ["updated_at", "2015-10-30 14:54:07.258056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:54:07.269624"], ["updated_at", "2015-10-30 14:54:07.269624"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.276076"], ["updated_at", "2015-10-30 14:54:07.276076"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:54:07.287642"], ["updated_at", "2015-10-30 14:54:07.287642"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.289687"], ["updated_at", "2015-10-30 14:54:07.289687"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:54:07.295488"], ["updated_at", "2015-10-30 14:54:07.295488"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.299317"], ["updated_at", "2015-10-30 14:54:07.299317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-30 14:54:07.305924"], ["updated_at", "2015-10-30 14:54:07.305924"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:54:07.318119"], ["updated_at", "2015-10-30 14:54:07.318119"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.320589"], ["updated_at", "2015-10-30 14:54:07.320589"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:54:07.329973"], ["updated_at", "2015-10-30 14:54:07.329973"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.340104"], ["updated_at", "2015-10-30 14:54:07.340104"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.6ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:54:07.356592"], ["updated_at", "2015-10-30 14:54:07.356592"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.360894"], ["updated_at", "2015-10-30 14:54:07.360894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:54:07.365835"], ["updated_at", "2015-10-30 14:54:07.365835"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:54:07.371535"], ["updated_at", "2015-10-30 14:54:07.371535"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 14:54:07.373327"], ["updated_at", "2015-10-30 14:54:07.373327"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.376695"], ["updated_at", "2015-10-30 14:54:07.376695"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 14:54:07.383803"], ["updated_at", "2015-10-30 14:54:07.383803"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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:54:07.387923"], ["updated_at", "2015-10-30 14:54:07.387923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-10-30 14:54:07.401296"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-10-30 14:54:07.412941"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) SQL (0.1ms) 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  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.437552"], ["updated_at", "2015-10-30 14:54:07.437552"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.445320"], ["updated_at", "2015-10-30 14:54:07.445320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.450596"], ["updated_at", "2015-10-30 14:54:07.450596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.453602"], ["updated_at", "2015-10-30 14:54:07.453602"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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: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  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]]  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.460097"], ["updated_at", "2015-10-30 14:54:07.460097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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: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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.464198"], ["updated_at", "2015-10-30 14:54:07.464198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.468250"], ["updated_at", "2015-10-30 14:54:07.468250"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:54:07.486099"], ["updated_at", "2015-10-30 14:54:07.486099"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.488754"], ["updated_at", "2015-10-30 14:54:07.488754"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.0ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:54:07.501688"], ["updated_at", "2015-10-30 14:54:07.501688"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.504594"], ["updated_at", "2015-10-30 14:54:07.504594"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.0ms) 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"]] SQL (0.2ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:54:07.515196"], ["updated_at", "2015-10-30 14:54:07.515196"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.3ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.4ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.9ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:17.662900"], ["updated_at", "2015-10-30 15:07:17.662900"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.8ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.681196"], ["updated_at", "2015-10-30 15:07:17.681196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 15:07:17.722920"], ["updated_at", "2015-10-30 15:07:17.722920"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:17.725004"], ["updated_at", "2015-10-30 15:07:17.725004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.731935"], ["updated_at", "2015-10-30 15:07:17.731935"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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 (3.9ms) Rendered wupee/api/notifications/index.json.jbuilder (11.3ms) Completed 200 OK in 12ms (Views: 11.4ms | ActiveRecord: 0.4ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 15:07:17.789383"], ["updated_at", "2015-10-30 15:07:17.789383"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:17.791879"], ["updated_at", "2015-10-30 15:07:17.791879"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.799003"], ["updated_at", "2015-10-30 15:07:17.799003"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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.7ms) Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.2ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 15:07:17.812778"], ["updated_at", "2015-10-30 15:07:17.812778"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:17.815225"], ["updated_at", "2015-10-30 15:07:17.815225"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.822970"], ["updated_at", "2015-10-30 15:07:17.822970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:17.849943"], ["updated_at", "2015-10-30 15:07:17.849943"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.852395"], ["updated_at", "2015-10-30 15:07:17.852395"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.2ms) 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"]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) Wupee::Notification Load (0.2ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 15:07:18.010684"], ["updated_at", "2015-10-30 15:07:18.010684"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-30 15:07:18.013004"], ["updated_at", "2015-10-30 15:07:18.013004"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.015955"], ["updated_at", "2015-10-30 15:07:18.015955"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.018753"], ["updated_at", "2015-10-30 15:07:18.018753"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 15:07:18.025082"], ["updated_at", "2015-10-30 15:07:18.025082"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 15:07:18.027565"], ["updated_at", "2015-10-30 15:07:18.027565"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.030394"], ["updated_at", "2015-10-30 15:07:18.030394"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.033266"], ["updated_at", "2015-10-30 15:07:18.033266"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.2ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:18.070926"], ["updated_at", "2015-10-30 15:07:18.070926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 15:07:18.088475"], ["updated_at", "2015-10-30 15:07:18.088475"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 15:07:18.090437"], ["updated_at", "2015-10-30 15:07:18.090437"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.093403"], ["updated_at", "2015-10-30 15:07:18.093403"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.096043"], ["updated_at", "2015-10-30 15:07:18.096043"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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.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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:18.114963"], ["updated_at", "2015-10-30 15:07:18.114963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-30 15:07:18.130826"], ["updated_at", "2015-10-30 15:07:18.130826"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:18.134653"], ["updated_at", "2015-10-30 15:07:18.134653"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.136867"], ["updated_at", "2015-10-30 15:07:18.136867"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.2ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-30 15:07:18.151608"], ["updated_at", "2015-10-30 15:07:18.151608"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-30 15:07:18.157558"], ["updated_at", "2015-10-30 15:07:18.157558"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.2ms) 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.162817"], ["updated_at", "2015-10-30 15:07:18.162817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-30 15:07:18.177330"], ["updated_at", "2015-10-30 15:07:18.177330"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-30 15:07:18.189838"], ["updated_at", "2015-10-30 15:07:18.189838"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.193401"], ["updated_at", "2015-10-30 15:07:18.193401"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-30 15:07:18.202164"], ["updated_at", "2015-10-30 15:07:18.202164"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:18.214002"], ["updated_at", "2015-10-30 15:07:18.214002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:18.220183"], ["updated_at", "2015-10-30 15:07:18.220183"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.227910"], ["updated_at", "2015-10-30 15:07:18.227910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-30 15:07:18.235944"], ["updated_at", "2015-10-30 15:07:18.235944"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-30 15:07:18.241578"], ["updated_at", "2015-10-30 15:07:18.241578"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 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 SQL (0.1ms) 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.245756"], ["updated_at", "2015-10-30 15:07:18.245756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:18.254795"], ["updated_at", "2015-10-30 15:07:18.254795"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:18.261648"], ["updated_at", "2015-10-30 15:07:18.261648"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.265726"], ["updated_at", "2015-10-30 15:07:18.265726"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:18.271972"], ["updated_at", "2015-10-30 15:07:18.271972"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.281277"], ["updated_at", "2015-10-30 15:07:18.281277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:18.288111"], ["updated_at", "2015-10-30 15:07:18.288111"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.290544"], ["updated_at", "2015-10-30 15:07:18.290544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-30 15:07:18.296872"], ["updated_at", "2015-10-30 15:07:18.296872"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:18.308265"], ["updated_at", "2015-10-30 15:07:18.308265"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.312674"], ["updated_at", "2015-10-30 15:07:18.312674"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:18.322794"], ["updated_at", "2015-10-30 15:07:18.322794"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.327368"], ["updated_at", "2015-10-30 15:07:18.327368"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:18.342025"], ["updated_at", "2015-10-30 15:07:18.342025"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.346912"], ["updated_at", "2015-10-30 15:07:18.346912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:18.351263"], ["updated_at", "2015-10-30 15:07:18.351263"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:18.355389"], ["updated_at", "2015-10-30 15:07:18.355389"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 15:07:18.357736"], ["updated_at", "2015-10-30 15:07:18.357736"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.360726"], ["updated_at", "2015-10-30 15:07:18.360726"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 15:07:18.366444"], ["updated_at", "2015-10-30 15:07:18.366444"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.2ms) 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 15:07:18.368958"], ["updated_at", "2015-10-30 15:07:18.368958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.4ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-10-30 15:07:18.385929"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-10-30 15:07:18.396235"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) SQL (0.1ms) 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  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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.422843"], ["updated_at", "2015-10-30 15:07:18.422843"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.430653"], ["updated_at", "2015-10-30 15:07:18.430653"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.434812"], ["updated_at", "2015-10-30 15:07:18.434812"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.437613"], ["updated_at", "2015-10-30 15:07:18.437613"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]]  (0.2ms) SELECT COUNT(*) FROM "wupee_notifications" Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.445844"], ["updated_at", "2015-10-30 15:07:18.445844"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.450032"], ["updated_at", "2015-10-30 15:07:18.450032"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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.452517"], ["updated_at", "2015-10-30 15:07:18.452517"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:18.467591"], ["updated_at", "2015-10-30 15:07:18.467591"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.470259"], ["updated_at", "2015-10-30 15:07:18.470259"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.0ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 15:07:18.481673"], ["updated_at", "2015-10-30 15:07:18.481673"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.484035"], ["updated_at", "2015-10-30 15:07:18.484035"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.0ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:18.494918"], ["updated_at", "2015-10-30 15:07:18.494918"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.3ms) rollback transaction  (0.3ms) begin transaction  (0.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:53.753331"], ["updated_at", "2015-10-30 15:07:53.753331"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.773197"], ["updated_at", "2015-10-30 15:07:53.773197"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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)  (8.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 15:07:53.815363"], ["updated_at", "2015-10-30 15:07:53.815363"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:53.818119"], ["updated_at", "2015-10-30 15:07:53.818119"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.825402"], ["updated_at", "2015-10-30 15:07:53.825402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.2ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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 (3.5ms) Rendered wupee/api/notifications/index.json.jbuilder (10.2ms) Completed 200 OK in 11ms (Views: 10.1ms | ActiveRecord: 0.4ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 15:07:53.856586"], ["updated_at", "2015-10-30 15:07:53.856586"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:53.861323"], ["updated_at", "2015-10-30 15:07:53.861323"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.3ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.3ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.881628"], ["updated_at", "2015-10-30 15:07:53.881628"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.3ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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 (3.2ms) Rendered wupee/api/notifications/show.json.jbuilder (4.6ms) Completed 200 OK in 9ms (Views: 6.6ms | ActiveRecord: 0.4ms)  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 15:07:53.900612"], ["updated_at", "2015-10-30 15:07:53.900612"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:53.904270"], ["updated_at", "2015-10-30 15:07:53.904270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.917274"], ["updated_at", "2015-10-30 15:07:53.917274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] SQL (0.2ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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)  (0.9ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:53.946024"], ["updated_at", "2015-10-30 15:07:53.946024"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.949753"], ["updated_at", "2015-10-30 15:07:53.949753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.6ms) 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"]] SQL (0.2ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 11ms (ActiveRecord: 0.8ms) Wupee::Notification Load (0.2ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 15:07:54.140315"], ["updated_at", "2015-10-30 15:07:54.140315"]]  (0.2ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-30 15:07:54.145024"], ["updated_at", "2015-10-30 15:07:54.145024"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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.150706"], ["updated_at", "2015-10-30 15:07:54.150706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.156463"], ["updated_at", "2015-10-30 15:07:54.156463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (7.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 15:07:54.172221"], ["updated_at", "2015-10-30 15:07:54.172221"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 15:07:54.176319"], ["updated_at", "2015-10-30 15:07:54.176319"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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.181891"], ["updated_at", "2015-10-30 15:07:54.181891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.187547"], ["updated_at", "2015-10-30 15:07:54.187547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.8ms) SQL (0.3ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (1.2ms) 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"]]  (0.3ms) SELECT "users"."id" FROM "users"  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:54.244771"], ["updated_at", "2015-10-30 15:07:54.244771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.1ms) SQL (0.1ms) 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  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 15:07:54.260496"], ["updated_at", "2015-10-30 15:07:54.260496"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 15:07:54.266613"], ["updated_at", "2015-10-30 15:07:54.266613"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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.272844"], ["updated_at", "2015-10-30 15:07:54.272844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.288058"], ["updated_at", "2015-10-30 15:07:54.288058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.1ms) SQL (0.1ms) 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 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  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.6ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:54.314892"], ["updated_at", "2015-10-30 15:07:54.314892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.3ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-30 15:07:54.329393"], ["updated_at", "2015-10-30 15:07:54.329393"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:54.332581"], ["updated_at", "2015-10-30 15:07:54.332581"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.337171"], ["updated_at", "2015-10-30 15:07:54.337171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-30 15:07:54.352383"], ["updated_at", "2015-10-30 15:07:54.352383"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-30 15:07:54.365267"], ["updated_at", "2015-10-30 15:07:54.365267"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.369240"], ["updated_at", "2015-10-30 15:07:54.369240"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-30 15:07:54.377209"], ["updated_at", "2015-10-30 15:07:54.377209"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-30 15:07:54.384447"], ["updated_at", "2015-10-30 15:07:54.384447"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.387107"], ["updated_at", "2015-10-30 15:07:54.387107"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-30 15:07:54.396932"], ["updated_at", "2015-10-30 15:07:54.396932"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:54.414947"], ["updated_at", "2015-10-30 15:07:54.414947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:54.421174"], ["updated_at", "2015-10-30 15:07:54.421174"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.423697"], ["updated_at", "2015-10-30 15:07:54.423697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-30 15:07:54.430519"], ["updated_at", "2015-10-30 15:07:54.430519"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-30 15:07:54.436293"], ["updated_at", "2015-10-30 15:07:54.436293"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.438853"], ["updated_at", "2015-10-30 15:07:54.438853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:54.447813"], ["updated_at", "2015-10-30 15:07:54.447813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:54.453157"], ["updated_at", "2015-10-30 15:07:54.453157"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.458144"], ["updated_at", "2015-10-30 15:07:54.458144"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:54.470075"], ["updated_at", "2015-10-30 15:07:54.470075"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.471698"], ["updated_at", "2015-10-30 15:07:54.471698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:54.478195"], ["updated_at", "2015-10-30 15:07:54.478195"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.480851"], ["updated_at", "2015-10-30 15:07:54.480851"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-30 15:07:54.485792"], ["updated_at", "2015-10-30 15:07:54.485792"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:54.499657"], ["updated_at", "2015-10-30 15:07:54.499657"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.503001"], ["updated_at", "2015-10-30 15:07:54.503001"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (1.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:54.526623"], ["updated_at", "2015-10-30 15:07:54.526623"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.533409"], ["updated_at", "2015-10-30 15:07:54.533409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.8ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:54.541862"], ["updated_at", "2015-10-30 15:07:54.541862"]]  (0.4ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.548745"], ["updated_at", "2015-10-30 15:07:54.548745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:54.555030"], ["updated_at", "2015-10-30 15:07:54.555030"]]  (0.2ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (1.0ms) rollback transaction  (0.4ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:54.567908"], ["updated_at", "2015-10-30 15:07:54.567908"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 15:07:54.570291"], ["updated_at", "2015-10-30 15:07:54.570291"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.573303"], ["updated_at", "2015-10-30 15:07:54.573303"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 15:07:54.579816"], ["updated_at", "2015-10-30 15:07:54.579816"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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 15:07:54.583179"], ["updated_at", "2015-10-30 15:07:54.583179"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-10-30 15:07:54.590072"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.3ms) 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  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-10-30 15:07:54.601017"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.4ms) SQL (0.1ms) 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  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.635289"], ["updated_at", "2015-10-30 15:07:54.635289"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.644165"], ["updated_at", "2015-10-30 15:07:54.644165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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.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  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.648685"], ["updated_at", "2015-10-30 15:07:54.648685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.651566"], ["updated_at", "2015-10-30 15:07:54.651566"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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 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  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]]  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.657907"], ["updated_at", "2015-10-30 15:07:54.657907"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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.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  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.662509"], ["updated_at", "2015-10-30 15:07:54.662509"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.665979"], ["updated_at", "2015-10-30 15:07:54.665979"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (8.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:54.691659"], ["updated_at", "2015-10-30 15:07:54.691659"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.694647"], ["updated_at", "2015-10-30 15:07:54.694647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.0ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 15:07:54.706155"], ["updated_at", "2015-10-30 15:07:54.706155"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.708945"], ["updated_at", "2015-10-30 15:07:54.708945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:54.721908"], ["updated_at", "2015-10-30 15:07:54.721908"]]  (0.3ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.3ms) SAVEPOINT active_record_1 SQL (1.2ms) 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"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.6ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.8ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:09:58.203993"], ["updated_at", "2015-10-30 15:09:58.203993"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (1.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (1.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.230778"], ["updated_at", "2015-10-30 15:09:58.230778"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 15:09:58.278055"], ["updated_at", "2015-10-30 15:09:58.278055"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:09:58.280868"], ["updated_at", "2015-10-30 15:09:58.280868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.288824"], ["updated_at", "2015-10-30 15:09:58.288824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.2ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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 (3.8ms) Rendered wupee/api/notifications/index.json.jbuilder (11.8ms) Completed 200 OK in 13ms (Views: 11.9ms | ActiveRecord: 0.4ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 15:09:58.320235"], ["updated_at", "2015-10-30 15:09:58.320235"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:09:58.325900"], ["updated_at", "2015-10-30 15:09:58.325900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.337923"], ["updated_at", "2015-10-30 15:09:58.337923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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 (2.0ms) Rendered wupee/api/notifications/show.json.jbuilder (3.3ms) Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.2ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 15:09:58.352691"], ["updated_at", "2015-10-30 15:09:58.352691"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:09:58.355682"], ["updated_at", "2015-10-30 15:09:58.355682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.366639"], ["updated_at", "2015-10-30 15:09:58.366639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:09:58.386460"], ["updated_at", "2015-10-30 15:09:58.386460"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.391138"], ["updated_at", "2015-10-30 15:09:58.391138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.2ms) 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"]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (1.8ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 15:09:58.563526"], ["updated_at", "2015-10-30 15:09:58.563526"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-30 15:09:58.567805"], ["updated_at", "2015-10-30 15:09:58.567805"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.572176"], ["updated_at", "2015-10-30 15:09:58.572176"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.575892"], ["updated_at", "2015-10-30 15:09:58.575892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 15:09:58.582918"], ["updated_at", "2015-10-30 15:09:58.582918"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 15:09:58.585127"], ["updated_at", "2015-10-30 15:09:58.585127"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.588192"], ["updated_at", "2015-10-30 15:09:58.588192"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.591779"], ["updated_at", "2015-10-30 15:09:58.591779"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.3ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.4ms) SELECT "users"."id" FROM "users"  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:09:58.642345"], ["updated_at", "2015-10-30 15:09:58.642345"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 15:09:58.652901"], ["updated_at", "2015-10-30 15:09:58.652901"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 15:09:58.655743"], ["updated_at", "2015-10-30 15:09:58.655743"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.658934"], ["updated_at", "2015-10-30 15:09:58.658934"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.662478"], ["updated_at", "2015-10-30 15:09:58.662478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.1ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:09:58.691688"], ["updated_at", "2015-10-30 15:09:58.691688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.2ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-30 15:09:58.705091"], ["updated_at", "2015-10-30 15:09:58.705091"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:09:58.708121"], ["updated_at", "2015-10-30 15:09:58.708121"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.710674"], ["updated_at", "2015-10-30 15:09:58.710674"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.2ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.3ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-30 15:09:58.728771"], ["updated_at", "2015-10-30 15:09:58.728771"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.4ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-30 15:09:58.748187"], ["updated_at", "2015-10-30 15:09:58.748187"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.751279"], ["updated_at", "2015-10-30 15:09:58.751279"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-30 15:09:58.760638"], ["updated_at", "2015-10-30 15:09:58.760638"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-30 15:09:58.770502"], ["updated_at", "2015-10-30 15:09:58.770502"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.773324"], ["updated_at", "2015-10-30 15:09:58.773324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-30 15:09:58.785428"], ["updated_at", "2015-10-30 15:09:58.785428"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:09:58.807473"], ["updated_at", "2015-10-30 15:09:58.807473"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:09:58.812332"], ["updated_at", "2015-10-30 15:09:58.812332"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.816392"], ["updated_at", "2015-10-30 15:09:58.816392"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-30 15:09:58.826004"], ["updated_at", "2015-10-30 15:09:58.826004"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-30 15:09:58.839829"], ["updated_at", "2015-10-30 15:09:58.839829"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.4ms) 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.843036"], ["updated_at", "2015-10-30 15:09:58.843036"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:09:58.860870"], ["updated_at", "2015-10-30 15:09:58.860870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:09:58.867690"], ["updated_at", "2015-10-30 15:09:58.867690"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.870890"], ["updated_at", "2015-10-30 15:09:58.870890"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:09:58.877489"], ["updated_at", "2015-10-30 15:09:58.877489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.879832"], ["updated_at", "2015-10-30 15:09:58.879832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:09:58.886873"], ["updated_at", "2015-10-30 15:09:58.886873"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.889882"], ["updated_at", "2015-10-30 15:09:58.889882"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.7ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-30 15:09:58.898787"], ["updated_at", "2015-10-30 15:09:58.898787"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.3ms) 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  (1.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:09:58.925115"], ["updated_at", "2015-10-30 15:09:58.925115"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.928941"], ["updated_at", "2015-10-30 15:09:58.928941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:09:58.941511"], ["updated_at", "2015-10-30 15:09:58.941511"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.944307"], ["updated_at", "2015-10-30 15:09:58.944307"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:09:58.955528"], ["updated_at", "2015-10-30 15:09:58.955528"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.5ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.959472"], ["updated_at", "2015-10-30 15:09:58.959472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.8ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:09:58.973158"], ["updated_at", "2015-10-30 15:09:58.973158"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:09:58.977803"], ["updated_at", "2015-10-30 15:09:58.977803"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 15:09:58.980398"], ["updated_at", "2015-10-30 15:09:58.980398"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.984002"], ["updated_at", "2015-10-30 15:09:58.984002"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 15:09:58.990232"], ["updated_at", "2015-10-30 15:09:58.990232"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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 15:09:58.992852"], ["updated_at", "2015-10-30 15:09:58.992852"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-10-30 15:09:59.006753"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-10-30 15:09:59.017157"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.5ms) 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 User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) SQL (0.1ms) 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  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.051403"], ["updated_at", "2015-10-30 15:09:59.051403"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.060198"], ["updated_at", "2015-10-30 15:09:59.060198"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.067611"], ["updated_at", "2015-10-30 15:09:59.067611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.070789"], ["updated_at", "2015-10-30 15:09:59.070789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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.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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]]  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.077991"], ["updated_at", "2015-10-30 15:09:59.077991"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.083417"], ["updated_at", "2015-10-30 15:09:59.083417"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.086868"], ["updated_at", "2015-10-30 15:09:59.086868"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:09:59.107211"], ["updated_at", "2015-10-30 15:09:59.107211"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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:59.109670"], ["updated_at", "2015-10-30 15:09:59.109670"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 15:09:59.122495"], ["updated_at", "2015-10-30 15:09:59.122495"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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:59.125749"], ["updated_at", "2015-10-30 15:09:59.125749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:09:59.140188"], ["updated_at", "2015-10-30 15:09:59.140188"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 SQL (1.8ms) 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"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.0ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:23:43.599262"], ["updated_at", "2015-10-30 15:23:43.599262"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.8ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.617031"], ["updated_at", "2015-10-30 15:23:43.617031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 15:23:43.659545"], ["updated_at", "2015-10-30 15:23:43.659545"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:23:43.661873"], ["updated_at", "2015-10-30 15:23:43.661873"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.668202"], ["updated_at", "2015-10-30 15:23:43.668202"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.2ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.4ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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.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)  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 15:23:43.709790"], ["updated_at", "2015-10-30 15:23:43.709790"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:23:43.717456"], ["updated_at", "2015-10-30 15:23:43.717456"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.725167"], ["updated_at", "2015-10-30 15:23:43.725167"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.2ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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.7ms) Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.3ms)  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 15:23:43.737692"], ["updated_at", "2015-10-30 15:23:43.737692"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:23:43.739631"], ["updated_at", "2015-10-30 15:23:43.739631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.750521"], ["updated_at", "2015-10-30 15:23:43.750521"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.3ms) 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]] SQL (0.4ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:23:43.777681"], ["updated_at", "2015-10-30 15:23:43.777681"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.780909"], ["updated_at", "2015-10-30 15:23:43.780909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.1ms) 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"]] SQL (0.0ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 15:23:43.940895"], ["updated_at", "2015-10-30 15:23:43.940895"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-30 15:23:43.944452"], ["updated_at", "2015-10-30 15:23:43.944452"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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:43.949216"], ["updated_at", "2015-10-30 15:23:43.949216"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.952513"], ["updated_at", "2015-10-30 15:23:43.952513"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 15:23:43.959002"], ["updated_at", "2015-10-30 15:23:43.959002"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 15:23:43.961331"], ["updated_at", "2015-10-30 15:23:43.961331"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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:43.964018"], ["updated_at", "2015-10-30 15:23:43.964018"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.967114"], ["updated_at", "2015-10-30 15:23:43.967114"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.3ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.3ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:23:44.014916"], ["updated_at", "2015-10-30 15:23:44.014916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 15:23:44.024896"], ["updated_at", "2015-10-30 15:23:44.024896"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 15:23:44.027122"], ["updated_at", "2015-10-30 15:23:44.027122"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.030912"], ["updated_at", "2015-10-30 15:23:44.030912"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.035267"], ["updated_at", "2015-10-30 15:23:44.035267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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.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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:23:44.054861"], ["updated_at", "2015-10-30 15:23:44.054861"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-30 15:23:44.074742"], ["updated_at", "2015-10-30 15:23:44.074742"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:23:44.077935"], ["updated_at", "2015-10-30 15:23:44.077935"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.080459"], ["updated_at", "2015-10-30 15:23:44.080459"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-30 15:23:44.094935"], ["updated_at", "2015-10-30 15:23:44.094935"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-30 15:23:44.104252"], ["updated_at", "2015-10-30 15:23:44.104252"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 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 SQL (0.2ms) 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.111237"], ["updated_at", "2015-10-30 15:23:44.111237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.7ms) rollback transaction  (0.4ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-30 15:23:44.131408"], ["updated_at", "2015-10-30 15:23:44.131408"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-30 15:23:44.140208"], ["updated_at", "2015-10-30 15:23:44.140208"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.2ms) 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.143452"], ["updated_at", "2015-10-30 15:23:44.143452"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-30 15:23:44.152192"], ["updated_at", "2015-10-30 15:23:44.152192"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:23:44.164742"], ["updated_at", "2015-10-30 15:23:44.164742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:23:44.169622"], ["updated_at", "2015-10-30 15:23:44.169622"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.6ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.177662"], ["updated_at", "2015-10-30 15:23:44.177662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-30 15:23:44.186993"], ["updated_at", "2015-10-30 15:23:44.186993"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-30 15:23:44.194120"], ["updated_at", "2015-10-30 15:23:44.194120"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.196992"], ["updated_at", "2015-10-30 15:23:44.196992"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:23:44.204987"], ["updated_at", "2015-10-30 15:23:44.204987"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:23:44.212029"], ["updated_at", "2015-10-30 15:23:44.212029"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.216015"], ["updated_at", "2015-10-30 15:23:44.216015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:23:44.223316"], ["updated_at", "2015-10-30 15:23:44.223316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.231438"], ["updated_at", "2015-10-30 15:23:44.231438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:23:44.237998"], ["updated_at", "2015-10-30 15:23:44.237998"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.240601"], ["updated_at", "2015-10-30 15:23:44.240601"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-30 15:23:44.245941"], ["updated_at", "2015-10-30 15:23:44.245941"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:23:44.257446"], ["updated_at", "2015-10-30 15:23:44.257446"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.260074"], ["updated_at", "2015-10-30 15:23:44.260074"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:23:44.268106"], ["updated_at", "2015-10-30 15:23:44.268106"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.273217"], ["updated_at", "2015-10-30 15:23:44.273217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:23:44.280750"], ["updated_at", "2015-10-30 15:23:44.280750"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.289989"], ["updated_at", "2015-10-30 15:23:44.289989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:23:44.295950"], ["updated_at", "2015-10-30 15:23:44.295950"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:23:44.299821"], ["updated_at", "2015-10-30 15:23:44.299821"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 15:23:44.301500"], ["updated_at", "2015-10-30 15:23:44.301500"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.304012"], ["updated_at", "2015-10-30 15:23:44.304012"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 15:23:44.309281"], ["updated_at", "2015-10-30 15:23:44.309281"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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 15:23:44.311836"], ["updated_at", "2015-10-30 15:23:44.311836"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-10-30 15:23:44.319301"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-10-30 15:23:44.328928"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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 User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) SQL (0.1ms) 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  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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.356550"], ["updated_at", "2015-10-30 15:23:44.356550"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.365349"], ["updated_at", "2015-10-30 15:23:44.365349"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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.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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.370088"], ["updated_at", "2015-10-30 15:23:44.370088"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.373473"], ["updated_at", "2015-10-30 15:23:44.373473"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]]  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.381377"], ["updated_at", "2015-10-30 15:23:44.381377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.386465"], ["updated_at", "2015-10-30 15:23:44.386465"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.389293"], ["updated_at", "2015-10-30 15:23:44.389293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:23:44.405972"], ["updated_at", "2015-10-30 15:23:44.405972"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.408343"], ["updated_at", "2015-10-30 15:23:44.408343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 15:23:44.420857"], ["updated_at", "2015-10-30 15:23:44.420857"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_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.423546"], ["updated_at", "2015-10-30 15:23:44.423546"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:23:44.436098"], ["updated_at", "2015-10-30 15:23:44.436098"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.3ms) SAVEPOINT active_record_1 SQL (1.1ms) 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"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.5ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.0ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:50:39.824635"], ["updated_at", "2015-11-02 08:50:39.824635"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.6ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.9ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.840323"], ["updated_at", "2015-11-02 08:50:39.840323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-11-02 08:50:39.890160"], ["updated_at", "2015-11-02 08:50:39.890160"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:50:39.894042"], ["updated_at", "2015-11-02 08:50:39.894042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.903543"], ["updated_at", "2015-11-02 08:50:39.903543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.2ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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.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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-11-02 08:50:39.939700"], ["updated_at", "2015-11-02 08:50:39.939700"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:50:39.942462"], ["updated_at", "2015-11-02 08:50:39.942462"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.950521"], ["updated_at", "2015-11-02 08:50:39.950521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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.8ms) Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.2ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-11-02 08:50:39.988086"], ["updated_at", "2015-11-02 08:50:39.988086"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:50:39.990234"], ["updated_at", "2015-11-02 08:50:39.990234"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.996941"], ["updated_at", "2015-11-02 08:50:39.996941"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:50:40.013026"], ["updated_at", "2015-11-02 08:50:40.013026"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.015291"], ["updated_at", "2015-11-02 08:50:40.015291"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.2ms) 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"]] SQL (0.0ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-02 08:50:40.198649"], ["updated_at", "2015-11-02 08:50:40.198649"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-11-02 08:50:40.202531"], ["updated_at", "2015-11-02 08:50:40.202531"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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.207927"], ["updated_at", "2015-11-02 08:50:40.207927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.213773"], ["updated_at", "2015-11-02 08:50:40.213773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-02 08:50:40.222534"], ["updated_at", "2015-11-02 08:50:40.222534"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-11-02 08:50:40.226489"], ["updated_at", "2015-11-02 08:50:40.226489"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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.232837"], ["updated_at", "2015-11-02 08:50:40.232837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.238852"], ["updated_at", "2015-11-02 08:50:40.238852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.7ms) SQL (0.2ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:50:40.293772"], ["updated_at", "2015-11-02 08:50:40.293772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-02 08:50:40.305506"], ["updated_at", "2015-11-02 08:50:40.305506"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-11-02 08:50:40.308329"], ["updated_at", "2015-11-02 08:50:40.308329"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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.311891"], ["updated_at", "2015-11-02 08:50:40.311891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.315529"], ["updated_at", "2015-11-02 08:50:40.315529"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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.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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:50:40.329175"], ["updated_at", "2015-11-02 08:50:40.329175"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.0ms) 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  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-11-02 08:50:40.339507"], ["updated_at", "2015-11-02 08:50:40.339507"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:50:40.342323"], ["updated_at", "2015-11-02 08:50:40.342323"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.344703"], ["updated_at", "2015-11-02 08:50:40.344703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-11-02 08:50:40.357952"], ["updated_at", "2015-11-02 08:50:40.357952"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-11-02 08:50:40.363568"], ["updated_at", "2015-11-02 08:50:40.363568"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.366145"], ["updated_at", "2015-11-02 08:50:40.366145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-11-02 08:50:40.374590"], ["updated_at", "2015-11-02 08:50:40.374590"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-11-02 08:50:40.380841"], ["updated_at", "2015-11-02 08:50:40.380841"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.383301"], ["updated_at", "2015-11-02 08:50:40.383301"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-11-02 08:50:40.391333"], ["updated_at", "2015-11-02 08:50:40.391333"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:50:40.400859"], ["updated_at", "2015-11-02 08:50:40.400859"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:50:40.404528"], ["updated_at", "2015-11-02 08:50:40.404528"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.407012"], ["updated_at", "2015-11-02 08:50:40.407012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-11-02 08:50:40.414328"], ["updated_at", "2015-11-02 08:50:40.414328"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-11-02 08:50:40.420327"], ["updated_at", "2015-11-02 08:50:40.420327"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.423002"], ["updated_at", "2015-11-02 08:50:40.423002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:50:40.433789"], ["updated_at", "2015-11-02 08:50:40.433789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:50:40.438099"], ["updated_at", "2015-11-02 08:50:40.438099"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.440369"], ["updated_at", "2015-11-02 08:50:40.440369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:50:40.446607"], ["updated_at", "2015-11-02 08:50:40.446607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.449204"], ["updated_at", "2015-11-02 08:50:40.449204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:50:40.457601"], ["updated_at", "2015-11-02 08:50:40.457601"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.460186"], ["updated_at", "2015-11-02 08:50:40.460186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-11-02 08:50:40.464971"], ["updated_at", "2015-11-02 08:50:40.464971"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:50:40.476710"], ["updated_at", "2015-11-02 08:50:40.476710"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.479143"], ["updated_at", "2015-11-02 08:50:40.479143"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:50:40.487088"], ["updated_at", "2015-11-02 08:50:40.487088"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.489551"], ["updated_at", "2015-11-02 08:50:40.489551"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:50:40.494533"], ["updated_at", "2015-11-02 08:50:40.494533"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.496928"], ["updated_at", "2015-11-02 08:50:40.496928"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:50:40.500817"], ["updated_at", "2015-11-02 08:50:40.500817"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:50:40.504600"], ["updated_at", "2015-11-02 08:50:40.504600"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-11-02 08:50:40.506326"], ["updated_at", "2015-11-02 08:50:40.506326"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.508963"], ["updated_at", "2015-11-02 08:50:40.508963"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-11-02 08:50:40.513703"], ["updated_at", "2015-11-02 08:50:40.513703"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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-11-02 08:50:40.515608"], ["updated_at", "2015-11-02 08:50:40.515608"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-11-02 08:50:40.522116"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-11-02 08:50:40.530483"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) SQL (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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.552592"], ["updated_at", "2015-11-02 08:50:40.552592"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.561903"], ["updated_at", "2015-11-02 08:50:40.561903"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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: 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.566323"], ["updated_at", "2015-11-02 08:50:40.566323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.568980"], ["updated_at", "2015-11-02 08:50:40.568980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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.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  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]]  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.575433"], ["updated_at", "2015-11-02 08:50:40.575433"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.580011"], ["updated_at", "2015-11-02 08:50:40.580011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.584241"], ["updated_at", "2015-11-02 08:50:40.584241"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:50:40.602428"], ["updated_at", "2015-11-02 08:50:40.602428"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.604596"], ["updated_at", "2015-11-02 08:50:40.604596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.0ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-02 08:50:40.614404"], ["updated_at", "2015-11-02 08:50:40.614404"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.616730"], ["updated_at", "2015-11-02 08:50:40.616730"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.0ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:50:40.625278"], ["updated_at", "2015-11-02 08:50:40.625278"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) 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"]]  (0.5ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.6ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:00.133481"], ["updated_at", "2015-11-02 08:53:00.133481"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.6ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.8ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.147366"], ["updated_at", "2015-11-02 08:53:00.147366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-11-02 08:53:00.185865"], ["updated_at", "2015-11-02 08:53:00.185865"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:00.188214"], ["updated_at", "2015-11-02 08:53:00.188214"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.195107"], ["updated_at", "2015-11-02 08:53:00.195107"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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 (3.4ms) Rendered wupee/api/notifications/index.json.jbuilder (11.3ms) Completed 200 OK in 13ms (Views: 11.4ms | ActiveRecord: 0.3ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-11-02 08:53:00.253873"], ["updated_at", "2015-11-02 08:53:00.253873"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:00.256275"], ["updated_at", "2015-11-02 08:53:00.256275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.263614"], ["updated_at", "2015-11-02 08:53:00.263614"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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 (2.0ms) Rendered wupee/api/notifications/show.json.jbuilder (3.4ms) Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.2ms)  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-11-02 08:53:00.278707"], ["updated_at", "2015-11-02 08:53:00.278707"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:00.280901"], ["updated_at", "2015-11-02 08:53:00.280901"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.289381"], ["updated_at", "2015-11-02 08:53:00.289381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:00.316440"], ["updated_at", "2015-11-02 08:53:00.316440"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.319230"], ["updated_at", "2015-11-02 08:53:00.319230"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.1ms) 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"]] SQL (0.0ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-02 08:53:00.479451"], ["updated_at", "2015-11-02 08:53:00.479451"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-11-02 08:53:00.481589"], ["updated_at", "2015-11-02 08:53:00.481589"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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.485783"], ["updated_at", "2015-11-02 08:53:00.485783"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.489603"], ["updated_at", "2015-11-02 08:53:00.489603"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-02 08:53:00.496161"], ["updated_at", "2015-11-02 08:53:00.496161"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-11-02 08:53:00.498747"], ["updated_at", "2015-11-02 08:53:00.498747"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.501894"], ["updated_at", "2015-11-02 08:53:00.501894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.505894"], ["updated_at", "2015-11-02 08:53:00.505894"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.2ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:00.553490"], ["updated_at", "2015-11-02 08:53:00.553490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-02 08:53:00.563396"], ["updated_at", "2015-11-02 08:53:00.563396"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-11-02 08:53:00.565741"], ["updated_at", "2015-11-02 08:53:00.565741"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.568579"], ["updated_at", "2015-11-02 08:53:00.568579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.572072"], ["updated_at", "2015-11-02 08:53:00.572072"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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.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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:00.591373"], ["updated_at", "2015-11-02 08:53:00.591373"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.2ms) SQL (0.1ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-11-02 08:53:00.609808"], ["updated_at", "2015-11-02 08:53:00.609808"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:00.612738"], ["updated_at", "2015-11-02 08:53:00.612738"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.616512"], ["updated_at", "2015-11-02 08:53:00.616512"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-11-02 08:53:00.632790"], ["updated_at", "2015-11-02 08:53:00.632790"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-11-02 08:53:00.640166"], ["updated_at", "2015-11-02 08:53:00.640166"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.644747"], ["updated_at", "2015-11-02 08:53:00.644747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-11-02 08:53:00.660398"], ["updated_at", "2015-11-02 08:53:00.660398"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-11-02 08:53:00.669975"], ["updated_at", "2015-11-02 08:53:00.669975"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.672770"], ["updated_at", "2015-11-02 08:53:00.672770"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-11-02 08:53:00.683057"], ["updated_at", "2015-11-02 08:53:00.683057"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:00.695595"], ["updated_at", "2015-11-02 08:53:00.695595"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:00.700603"], ["updated_at", "2015-11-02 08:53:00.700603"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.704681"], ["updated_at", "2015-11-02 08:53:00.704681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-11-02 08:53:00.717344"], ["updated_at", "2015-11-02 08:53:00.717344"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-11-02 08:53:00.724467"], ["updated_at", "2015-11-02 08:53:00.724467"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.727136"], ["updated_at", "2015-11-02 08:53:00.727136"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:00.735251"], ["updated_at", "2015-11-02 08:53:00.735251"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:00.739250"], ["updated_at", "2015-11-02 08:53:00.739250"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.743902"], ["updated_at", "2015-11-02 08:53:00.743902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:00.751861"], ["updated_at", "2015-11-02 08:53:00.751861"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.759366"], ["updated_at", "2015-11-02 08:53:00.759366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:00.767827"], ["updated_at", "2015-11-02 08:53:00.767827"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.770605"], ["updated_at", "2015-11-02 08:53:00.770605"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-11-02 08:53:00.775452"], ["updated_at", "2015-11-02 08:53:00.775452"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:00.788632"], ["updated_at", "2015-11-02 08:53:00.788632"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.791119"], ["updated_at", "2015-11-02 08:53:00.791119"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:00.800836"], ["updated_at", "2015-11-02 08:53:00.800836"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.804322"], ["updated_at", "2015-11-02 08:53:00.804322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.9ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:00.815999"], ["updated_at", "2015-11-02 08:53:00.815999"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.821708"], ["updated_at", "2015-11-02 08:53:00.821708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:00.826068"], ["updated_at", "2015-11-02 08:53:00.826068"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:00.830445"], ["updated_at", "2015-11-02 08:53:00.830445"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-11-02 08:53:00.832337"], ["updated_at", "2015-11-02 08:53:00.832337"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.835394"], ["updated_at", "2015-11-02 08:53:00.835394"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-11-02 08:53:00.840818"], ["updated_at", "2015-11-02 08:53:00.840818"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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-11-02 08:53:00.843472"], ["updated_at", "2015-11-02 08:53:00.843472"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-11-02 08:53:00.854501"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) 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]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-11-02 08:53:00.869884"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) SQL (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.892910"], ["updated_at", "2015-11-02 08:53:00.892910"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.900331"], ["updated_at", "2015-11-02 08:53:00.900331"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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: 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.904374"], ["updated_at", "2015-11-02 08:53:00.904374"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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.906934"], ["updated_at", "2015-11-02 08:53:00.906934"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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.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  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]]  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications" Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.913497"], ["updated_at", "2015-11-02 08:53:00.913497"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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: 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.917806"], ["updated_at", "2015-11-02 08:53:00.917806"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.920471"], ["updated_at", "2015-11-02 08:53:00.920471"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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: 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:00.936704"], ["updated_at", "2015-11-02 08:53:00.936704"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.939212"], ["updated_at", "2015-11-02 08:53:00.939212"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.0ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-02 08:53:00.951344"], ["updated_at", "2015-11-02 08:53:00.951344"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.953857"], ["updated_at", "2015-11-02 08:53:00.953857"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.0ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:00.964879"], ["updated_at", "2015-11-02 08:53:00.964879"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.2ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:12.916613"], ["updated_at", "2015-11-02 08:53:12.916613"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (1.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.8ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.934596"], ["updated_at", "2015-11-02 08:53:12.934596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-11-02 08:53:12.978251"], ["updated_at", "2015-11-02 08:53:12.978251"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:12.981541"], ["updated_at", "2015-11-02 08:53:12.981541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.992416"], ["updated_at", "2015-11-02 08:53:12.992416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.3ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.2ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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.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)  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-11-02 08:53:13.061918"], ["updated_at", "2015-11-02 08:53:13.061918"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:13.064933"], ["updated_at", "2015-11-02 08:53:13.064933"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.074625"], ["updated_at", "2015-11-02 08:53:13.074625"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.2ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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 (2.2ms) Rendered wupee/api/notifications/show.json.jbuilder (3.6ms) Completed 200 OK in 9ms (Views: 6.4ms | ActiveRecord: 0.4ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-11-02 08:53:13.091739"], ["updated_at", "2015-11-02 08:53:13.091739"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:13.097011"], ["updated_at", "2015-11-02 08:53:13.097011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.106876"], ["updated_at", "2015-11-02 08:53:13.106876"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:13.133544"], ["updated_at", "2015-11-02 08:53:13.133544"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.136654"], ["updated_at", "2015-11-02 08:53:13.136654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.2ms) 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"]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.2ms) Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (1.0ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-02 08:53:13.322844"], ["updated_at", "2015-11-02 08:53:13.322844"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-11-02 08:53:13.325939"], ["updated_at", "2015-11-02 08:53:13.325939"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.329145"], ["updated_at", "2015-11-02 08:53:13.329145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.332240"], ["updated_at", "2015-11-02 08:53:13.332240"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-02 08:53:13.337606"], ["updated_at", "2015-11-02 08:53:13.337606"]]  (0.0ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-11-02 08:53:13.339602"], ["updated_at", "2015-11-02 08:53:13.339602"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.342089"], ["updated_at", "2015-11-02 08:53:13.342089"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.344831"], ["updated_at", "2015-11-02 08:53:13.344831"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.3ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:13.384045"], ["updated_at", "2015-11-02 08:53:13.384045"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.2ms) 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  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-02 08:53:13.399048"], ["updated_at", "2015-11-02 08:53:13.399048"]]  (0.0ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-11-02 08:53:13.400945"], ["updated_at", "2015-11-02 08:53:13.400945"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.403486"], ["updated_at", "2015-11-02 08:53:13.403486"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.406179"], ["updated_at", "2015-11-02 08:53:13.406179"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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.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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:13.419935"], ["updated_at", "2015-11-02 08:53:13.419935"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-11-02 08:53:13.431211"], ["updated_at", "2015-11-02 08:53:13.431211"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:13.434931"], ["updated_at", "2015-11-02 08:53:13.434931"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.442048"], ["updated_at", "2015-11-02 08:53:13.442048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.2ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-11-02 08:53:13.459392"], ["updated_at", "2015-11-02 08:53:13.459392"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-11-02 08:53:13.466703"], ["updated_at", "2015-11-02 08:53:13.466703"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.469351"], ["updated_at", "2015-11-02 08:53:13.469351"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-11-02 08:53:13.480095"], ["updated_at", "2015-11-02 08:53:13.480095"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-11-02 08:53:13.489128"], ["updated_at", "2015-11-02 08:53:13.489128"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 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 SQL (0.2ms) 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.498688"], ["updated_at", "2015-11-02 08:53:13.498688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-11-02 08:53:13.509030"], ["updated_at", "2015-11-02 08:53:13.509030"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:13.519107"], ["updated_at", "2015-11-02 08:53:13.519107"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:13.522794"], ["updated_at", "2015-11-02 08:53:13.522794"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.524903"], ["updated_at", "2015-11-02 08:53:13.524903"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-11-02 08:53:13.532457"], ["updated_at", "2015-11-02 08:53:13.532457"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-11-02 08:53:13.540651"], ["updated_at", "2015-11-02 08:53:13.540651"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.543398"], ["updated_at", "2015-11-02 08:53:13.543398"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:13.551667"], ["updated_at", "2015-11-02 08:53:13.551667"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:13.561917"], ["updated_at", "2015-11-02 08:53:13.561917"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.565992"], ["updated_at", "2015-11-02 08:53:13.565992"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:13.571213"], ["updated_at", "2015-11-02 08:53:13.571213"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.572975"], ["updated_at", "2015-11-02 08:53:13.572975"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:13.578384"], ["updated_at", "2015-11-02 08:53:13.578384"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.580885"], ["updated_at", "2015-11-02 08:53:13.580885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-11-02 08:53:13.585679"], ["updated_at", "2015-11-02 08:53:13.585679"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.2ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:13.600192"], ["updated_at", "2015-11-02 08:53:13.600192"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.604972"], ["updated_at", "2015-11-02 08:53:13.604972"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:13.618758"], ["updated_at", "2015-11-02 08:53:13.618758"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.621822"], ["updated_at", "2015-11-02 08:53:13.621822"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:13.627519"], ["updated_at", "2015-11-02 08:53:13.627519"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.629894"], ["updated_at", "2015-11-02 08:53:13.629894"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:13.633712"], ["updated_at", "2015-11-02 08:53:13.633712"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:13.637586"], ["updated_at", "2015-11-02 08:53:13.637586"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-11-02 08:53:13.639202"], ["updated_at", "2015-11-02 08:53:13.639202"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.643889"], ["updated_at", "2015-11-02 08:53:13.643889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-11-02 08:53:13.650712"], ["updated_at", "2015-11-02 08:53:13.650712"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 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 SQL (0.2ms) 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-11-02 08:53:13.654258"], ["updated_at", "2015-11-02 08:53:13.654258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-11-02 08:53:13.668852"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-11-02 08:53:13.681790"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.3ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.4ms) SQL (0.1ms) 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  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.708664"], ["updated_at", "2015-11-02 08:53:13.708664"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.716494"], ["updated_at", "2015-11-02 08:53:13.716494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.722050"], ["updated_at", "2015-11-02 08:53:13.722050"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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.724734"], ["updated_at", "2015-11-02 08:53:13.724734"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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: 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  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]]  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" Wupee::NotificationTypeConfiguration Load (0.3ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.731505"], ["updated_at", "2015-11-02 08:53:13.731505"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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.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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.736048"], ["updated_at", "2015-11-02 08:53:13.736048"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.739075"], ["updated_at", "2015-11-02 08:53:13.739075"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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.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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:13.760132"], ["updated_at", "2015-11-02 08:53:13.760132"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.765661"], ["updated_at", "2015-11-02 08:53:13.765661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.2ms) 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"]] SQL (0.2ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-02 08:53:13.791285"], ["updated_at", "2015-11-02 08:53:13.791285"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.795084"], ["updated_at", "2015-11-02 08:53:13.795084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.0ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.4ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.2ms) rollback transaction  (0.6ms) begin transaction  (0.6ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:13.817715"], ["updated_at", "2015-11-02 08:53:13.817715"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:43.953805"], ["updated_at", "2015-11-02 08:53:43.953805"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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:43.966813"], ["updated_at", "2015-11-02 08:53:43.966813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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)  (9.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-11-02 08:53:44.023229"], ["updated_at", "2015-11-02 08:53:44.023229"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:44.025645"], ["updated_at", "2015-11-02 08:53:44.025645"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.032849"], ["updated_at", "2015-11-02 08:53:44.032849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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 (3.1ms) Rendered wupee/api/notifications/index.json.jbuilder (8.4ms) Completed 200 OK in 10ms (Views: 8.5ms | ActiveRecord: 0.3ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-11-02 08:53:44.059074"], ["updated_at", "2015-11-02 08:53:44.059074"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:44.061718"], ["updated_at", "2015-11-02 08:53:44.061718"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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.070411"], ["updated_at", "2015-11-02 08:53:44.070411"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.2ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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 (2.0ms) Rendered wupee/api/notifications/show.json.jbuilder (3.7ms) Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.2ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-11-02 08:53:44.092795"], ["updated_at", "2015-11-02 08:53:44.092795"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:44.095006"], ["updated_at", "2015-11-02 08:53:44.095006"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.101210"], ["updated_at", "2015-11-02 08:53:44.101210"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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)  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:44.119508"], ["updated_at", "2015-11-02 08:53:44.119508"]]  (0.4ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.127919"], ["updated_at", "2015-11-02 08:53:44.127919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.1ms) 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"]] SQL (0.0ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-02 08:53:44.255648"], ["updated_at", "2015-11-02 08:53:44.255648"]]  (0.0ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-11-02 08:53:44.257607"], ["updated_at", "2015-11-02 08:53:44.257607"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.260353"], ["updated_at", "2015-11-02 08:53:44.260353"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.263128"], ["updated_at", "2015-11-02 08:53:44.263128"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (8.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-02 08:53:44.277337"], ["updated_at", "2015-11-02 08:53:44.277337"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-11-02 08:53:44.279478"], ["updated_at", "2015-11-02 08:53:44.279478"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.282378"], ["updated_at", "2015-11-02 08:53:44.282378"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.285828"], ["updated_at", "2015-11-02 08:53:44.285828"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.8ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:44.317481"], ["updated_at", "2015-11-02 08:53:44.317481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.1ms) SQL (0.1ms) 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  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-02 08:53:44.333273"], ["updated_at", "2015-11-02 08:53:44.333273"]]  (0.0ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-11-02 08:53:44.335172"], ["updated_at", "2015-11-02 08:53:44.335172"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.337633"], ["updated_at", "2015-11-02 08:53:44.337633"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.340463"], ["updated_at", "2015-11-02 08:53:44.340463"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.0ms) 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: 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:44.354033"], ["updated_at", "2015-11-02 08:53:44.354033"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-11-02 08:53:44.364350"], ["updated_at", "2015-11-02 08:53:44.364350"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:44.369297"], ["updated_at", "2015-11-02 08:53:44.369297"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.372959"], ["updated_at", "2015-11-02 08:53:44.372959"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "wupee_notifications"  (1.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-11-02 08:53:44.391651"], ["updated_at", "2015-11-02 08:53:44.391651"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-11-02 08:53:44.397916"], ["updated_at", "2015-11-02 08:53:44.397916"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.400043"], ["updated_at", "2015-11-02 08:53:44.400043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-11-02 08:53:44.409544"], ["updated_at", "2015-11-02 08:53:44.409544"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-11-02 08:53:44.415865"], ["updated_at", "2015-11-02 08:53:44.415865"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.2ms) 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.418323"], ["updated_at", "2015-11-02 08:53:44.418323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-11-02 08:53:44.429658"], ["updated_at", "2015-11-02 08:53:44.429658"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:44.447393"], ["updated_at", "2015-11-02 08:53:44.447393"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:44.450988"], ["updated_at", "2015-11-02 08:53:44.450988"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.453083"], ["updated_at", "2015-11-02 08:53:44.453083"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-11-02 08:53:44.458786"], ["updated_at", "2015-11-02 08:53:44.458786"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-11-02 08:53:44.464425"], ["updated_at", "2015-11-02 08:53:44.464425"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.3ms) 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.466572"], ["updated_at", "2015-11-02 08:53:44.466572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:44.477218"], ["updated_at", "2015-11-02 08:53:44.477218"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.3ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:44.484389"], ["updated_at", "2015-11-02 08:53:44.484389"]]  (0.3ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.491615"], ["updated_at", "2015-11-02 08:53:44.491615"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:44.496984"], ["updated_at", "2015-11-02 08:53:44.496984"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.498657"], ["updated_at", "2015-11-02 08:53:44.498657"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:44.504462"], ["updated_at", "2015-11-02 08:53:44.504462"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.507031"], ["updated_at", "2015-11-02 08:53:44.507031"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-11-02 08:53:44.511733"], ["updated_at", "2015-11-02 08:53:44.511733"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.2ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:44.525997"], ["updated_at", "2015-11-02 08:53:44.525997"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.528387"], ["updated_at", "2015-11-02 08:53:44.528387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (1.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:44.543730"], ["updated_at", "2015-11-02 08:53:44.543730"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.546434"], ["updated_at", "2015-11-02 08:53:44.546434"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:44.551819"], ["updated_at", "2015-11-02 08:53:44.551819"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.554449"], ["updated_at", "2015-11-02 08:53:44.554449"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:44.558364"], ["updated_at", "2015-11-02 08:53:44.558364"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:44.562291"], ["updated_at", "2015-11-02 08:53:44.562291"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-11-02 08:53:44.564016"], ["updated_at", "2015-11-02 08:53:44.564016"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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.566432"], ["updated_at", "2015-11-02 08:53:44.566432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-11-02 08:53:44.574827"], ["updated_at", "2015-11-02 08:53:44.574827"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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-11-02 08:53:44.577327"], ["updated_at", "2015-11-02 08:53:44.577327"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 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 SQL (0.1ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-11-02 08:53:44.591738"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-11-02 08:53:44.598279"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) SQL (0.1ms) 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  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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.617249"], ["updated_at", "2015-11-02 08:53:44.617249"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.624196"], ["updated_at", "2015-11-02 08:53:44.624196"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.628087"], ["updated_at", "2015-11-02 08:53:44.628087"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.630768"], ["updated_at", "2015-11-02 08:53:44.630768"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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: 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  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]]  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications" Wupee::NotificationTypeConfiguration Load (0.1ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.637039"], ["updated_at", "2015-11-02 08:53:44.637039"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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: 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.641068"], ["updated_at", "2015-11-02 08:53:44.641068"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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.643442"], ["updated_at", "2015-11-02 08:53:44.643442"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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: 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:44.658337"], ["updated_at", "2015-11-02 08:53:44.658337"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.660708"], ["updated_at", "2015-11-02 08:53:44.660708"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.0ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-02 08:53:44.672347"], ["updated_at", "2015-11-02 08:53:44.672347"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.675434"], ["updated_at", "2015-11-02 08:53:44.675434"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.0ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:44.686793"], ["updated_at", "2015-11-02 08:53:44.686793"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (1.2ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) 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"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.0ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 10:54:22.002342"], ["updated_at", "2015-11-02 10:54:22.002342"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.6ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.017923"], ["updated_at", "2015-11-02 10:54:22.017923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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)  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-11-02 10:54:22.068667"], ["updated_at", "2015-11-02 10:54:22.068667"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 10:54:22.071191"], ["updated_at", "2015-11-02 10:54:22.071191"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.078478"], ["updated_at", "2015-11-02 10:54:22.078478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.3ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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.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)  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-11-02 10:54:22.102226"], ["updated_at", "2015-11-02 10:54:22.102226"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 10:54:22.104963"], ["updated_at", "2015-11-02 10:54:22.104963"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.118282"], ["updated_at", "2015-11-02 10:54:22.118282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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 (2.4ms) Rendered wupee/api/notifications/show.json.jbuilder (4.2ms) Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.3ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-11-02 10:54:22.134772"], ["updated_at", "2015-11-02 10:54:22.134772"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 10:54:22.137139"], ["updated_at", "2015-11-02 10:54:22.137139"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.144147"], ["updated_at", "2015-11-02 10:54:22.144147"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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)  (0.8ms) rollback transaction  (0.4ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 10:54:22.171952"], ["updated_at", "2015-11-02 10:54:22.171952"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.174572"], ["updated_at", "2015-11-02 10:54:22.174572"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.1ms) 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"]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-02 10:54:22.333200"], ["updated_at", "2015-11-02 10:54:22.333200"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-11-02 10:54:22.335572"], ["updated_at", "2015-11-02 10:54:22.335572"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.338660"], ["updated_at", "2015-11-02 10:54:22.338660"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.341919"], ["updated_at", "2015-11-02 10:54:22.341919"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-02 10:54:22.347725"], ["updated_at", "2015-11-02 10:54:22.347725"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-11-02 10:54:22.349700"], ["updated_at", "2015-11-02 10:54:22.349700"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.352199"], ["updated_at", "2015-11-02 10:54:22.352199"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.354998"], ["updated_at", "2015-11-02 10:54:22.354998"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.2ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 10:54:22.395658"], ["updated_at", "2015-11-02 10:54:22.395658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-02 10:54:22.408759"], ["updated_at", "2015-11-02 10:54:22.408759"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-11-02 10:54:22.411354"], ["updated_at", "2015-11-02 10:54:22.411354"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.414482"], ["updated_at", "2015-11-02 10:54:22.414482"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.418083"], ["updated_at", "2015-11-02 10:54:22.418083"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.1ms) SQL (0.1ms) 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 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 10:54:22.434737"], ["updated_at", "2015-11-02 10:54:22.434737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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  (1.3ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-11-02 10:54:22.453773"], ["updated_at", "2015-11-02 10:54:22.453773"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 10:54:22.457136"], ["updated_at", "2015-11-02 10:54:22.457136"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.459630"], ["updated_at", "2015-11-02 10:54:22.459630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-11-02 10:54:22.472233"], ["updated_at", "2015-11-02 10:54:22.472233"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-11-02 10:54:22.479593"], ["updated_at", "2015-11-02 10:54:22.479593"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 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 SQL (0.1ms) 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.483705"], ["updated_at", "2015-11-02 10:54:22.483705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-11-02 10:54:22.502545"], ["updated_at", "2015-11-02 10:54:22.502545"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-11-02 10:54:22.509949"], ["updated_at", "2015-11-02 10:54:22.509949"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.512232"], ["updated_at", "2015-11-02 10:54:22.512232"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-11-02 10:54:22.521184"], ["updated_at", "2015-11-02 10:54:22.521184"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 10:54:22.534326"], ["updated_at", "2015-11-02 10:54:22.534326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 10:54:22.539595"], ["updated_at", "2015-11-02 10:54:22.539595"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.5ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.543842"], ["updated_at", "2015-11-02 10:54:22.543842"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-11-02 10:54:22.556207"], ["updated_at", "2015-11-02 10:54:22.556207"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-11-02 10:54:22.562189"], ["updated_at", "2015-11-02 10:54:22.562189"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.564816"], ["updated_at", "2015-11-02 10:54:22.564816"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 10:54:22.572687"], ["updated_at", "2015-11-02 10:54:22.572687"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 10:54:22.576764"], ["updated_at", "2015-11-02 10:54:22.576764"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.579132"], ["updated_at", "2015-11-02 10:54:22.579132"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 10:54:22.587161"], ["updated_at", "2015-11-02 10:54:22.587161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.589615"], ["updated_at", "2015-11-02 10:54:22.589615"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.3ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 10:54:22.604543"], ["updated_at", "2015-11-02 10:54:22.604543"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.607707"], ["updated_at", "2015-11-02 10:54:22.607707"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-11-02 10:54:22.612563"], ["updated_at", "2015-11-02 10:54:22.612563"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 10:54:22.624927"], ["updated_at", "2015-11-02 10:54:22.624927"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.627684"], ["updated_at", "2015-11-02 10:54:22.627684"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 10:54:22.639376"], ["updated_at", "2015-11-02 10:54:22.639376"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.645314"], ["updated_at", "2015-11-02 10:54:22.645314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 10:54:22.656213"], ["updated_at", "2015-11-02 10:54:22.656213"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.658970"], ["updated_at", "2015-11-02 10:54:22.658970"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 10:54:22.663120"], ["updated_at", "2015-11-02 10:54:22.663120"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 10:54:22.667141"], ["updated_at", "2015-11-02 10:54:22.667141"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-11-02 10:54:22.668934"], ["updated_at", "2015-11-02 10:54:22.668934"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.671581"], ["updated_at", "2015-11-02 10:54:22.671581"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-11-02 10:54:22.676833"], ["updated_at", "2015-11-02 10:54:22.676833"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 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 SQL (0.1ms) 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-11-02 10:54:22.681145"], ["updated_at", "2015-11-02 10:54:22.681145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] SQL (0.4ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-11-02 10:54:22.690729"], ["id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.4ms) 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  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-11-02 10:54:22.705574"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) SQL (0.1ms) 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  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.730281"], ["updated_at", "2015-11-02 10:54:22.730281"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.738181"], ["updated_at", "2015-11-02 10:54:22.738181"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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: 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.742278"], ["updated_at", "2015-11-02 10:54:22.742278"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.744908"], ["updated_at", "2015-11-02 10:54:22.744908"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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: 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]]  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.751568"], ["updated_at", "2015-11-02 10:54:22.751568"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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: 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.755964"], ["updated_at", "2015-11-02 10:54:22.755964"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.758966"], ["updated_at", "2015-11-02 10:54:22.758966"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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: 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 10:54:22.775723"], ["updated_at", "2015-11-02 10:54:22.775723"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.778078"], ["updated_at", "2015-11-02 10:54:22.778078"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.0ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-02 10:54:22.788853"], ["updated_at", "2015-11-02 10:54:22.788853"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.791378"], ["updated_at", "2015-11-02 10:54:22.791378"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.0ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 10:54:22.802190"], ["updated_at", "2015-11-02 10:54:22.802190"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.6ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.2ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.6ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 11:00:59.836265"], ["updated_at", "2015-11-02 11:00:59.836265"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.5ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.8ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.855259"], ["updated_at", "2015-11-02 11:00:59.855259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-11-02 11:00:59.917059"], ["updated_at", "2015-11-02 11:00:59.917059"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 11:00:59.919375"], ["updated_at", "2015-11-02 11:00:59.919375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.928680"], ["updated_at", "2015-11-02 11:00:59.928680"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.2ms) 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.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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-11-02 11:00:59.964933"], ["updated_at", "2015-11-02 11:00:59.964933"]]  (0.6ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 11:00:59.976781"], ["updated_at", "2015-11-02 11:00:59.976781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.989555"], ["updated_at", "2015-11-02 11:00:59.989555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.3ms) 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]] Message Load (0.2ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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.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)  (1.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-11-02 11:01:00.017988"], ["updated_at", "2015-11-02 11:01:00.017988"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 11:01:00.020582"], ["updated_at", "2015-11-02 11:01:00.020582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.031291"], ["updated_at", "2015-11-02 11:01:00.031291"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.2ms) 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]] SQL (0.3ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 11:01:00.067140"], ["updated_at", "2015-11-02 11:01:00.067140"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.070813"], ["updated_at", "2015-11-02 11:01:00.070813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.2ms) 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"]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 6ms (ActiveRecord: 0.3ms) Wupee::Notification Load (0.3ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (1.0ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-02 11:01:00.257054"], ["updated_at", "2015-11-02 11:01:00.257054"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-11-02 11:01:00.259566"], ["updated_at", "2015-11-02 11:01:00.259566"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.262885"], ["updated_at", "2015-11-02 11:01:00.262885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.266045"], ["updated_at", "2015-11-02 11:01:00.266045"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-02 11:01:00.272541"], ["updated_at", "2015-11-02 11:01:00.272541"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-11-02 11:01:00.274962"], ["updated_at", "2015-11-02 11:01:00.274962"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.277735"], ["updated_at", "2015-11-02 11:01:00.277735"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.281721"], ["updated_at", "2015-11-02 11:01:00.281721"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.5ms) SQL (0.3ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 11:01:00.331985"], ["updated_at", "2015-11-02 11:01:00.331985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-02 11:01:00.342397"], ["updated_at", "2015-11-02 11:01:00.342397"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-11-02 11:01:00.344630"], ["updated_at", "2015-11-02 11:01:00.344630"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.349410"], ["updated_at", "2015-11-02 11:01:00.349410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.353424"], ["updated_at", "2015-11-02 11:01:00.353424"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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.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  (1.0ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 11:01:00.377822"], ["updated_at", "2015-11-02 11:01:00.377822"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-11-02 11:01:00.392274"], ["updated_at", "2015-11-02 11:01:00.392274"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 11:01:00.394803"], ["updated_at", "2015-11-02 11:01:00.394803"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.396949"], ["updated_at", "2015-11-02 11:01:00.396949"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-11-02 11:01:00.412710"], ["updated_at", "2015-11-02 11:01:00.412710"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-11-02 11:01:00.420682"], ["updated_at", "2015-11-02 11:01:00.420682"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 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 SQL (0.4ms) 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.428874"], ["updated_at", "2015-11-02 11:01:00.428874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-11-02 11:01:00.444895"], ["updated_at", "2015-11-02 11:01:00.444895"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-11-02 11:01:00.453552"], ["updated_at", "2015-11-02 11:01:00.453552"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.3ms) 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.458172"], ["updated_at", "2015-11-02 11:01:00.458172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-11-02 11:01:00.476271"], ["updated_at", "2015-11-02 11:01:00.476271"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (1.2ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 11:01:00.509419"], ["updated_at", "2015-11-02 11:01:00.509419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 11:01:00.520748"], ["updated_at", "2015-11-02 11:01:00.520748"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.527676"], ["updated_at", "2015-11-02 11:01:00.527676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-11-02 11:01:00.534418"], ["updated_at", "2015-11-02 11:01:00.534418"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-11-02 11:01:00.542661"], ["updated_at", "2015-11-02 11:01:00.542661"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.2ms) 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.546942"], ["updated_at", "2015-11-02 11:01:00.546942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 11:01:00.556898"], ["updated_at", "2015-11-02 11:01:00.556898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 11:01:00.567720"], ["updated_at", "2015-11-02 11:01:00.567720"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.570490"], ["updated_at", "2015-11-02 11:01:00.570490"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 11:01:00.577274"], ["updated_at", "2015-11-02 11:01:00.577274"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.579031"], ["updated_at", "2015-11-02 11:01:00.579031"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 11:01:00.585537"], ["updated_at", "2015-11-02 11:01:00.585537"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.588245"], ["updated_at", "2015-11-02 11:01:00.588245"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-11-02 11:01:00.593325"], ["updated_at", "2015-11-02 11:01:00.593325"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 11:01:00.617036"], ["updated_at", "2015-11-02 11:01:00.617036"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.620480"], ["updated_at", "2015-11-02 11:01:00.620480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.6ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 11:01:00.631115"], ["updated_at", "2015-11-02 11:01:00.631115"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.636396"], ["updated_at", "2015-11-02 11:01:00.636396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.6ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 11:01:00.648790"], ["updated_at", "2015-11-02 11:01:00.648790"]]  (0.5ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.7ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.658292"], ["updated_at", "2015-11-02 11:01:00.658292"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 11:01:00.670160"], ["updated_at", "2015-11-02 11:01:00.670160"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 11:01:00.676547"], ["updated_at", "2015-11-02 11:01:00.676547"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-11-02 11:01:00.679755"], ["updated_at", "2015-11-02 11:01:00.679755"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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.685798"], ["updated_at", "2015-11-02 11:01:00.685798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-11-02 11:01:00.696408"], ["updated_at", "2015-11-02 11:01:00.696408"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 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 SQL (0.3ms) 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-11-02 11:01:00.704807"], ["updated_at", "2015-11-02 11:01:00.704807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] SQL (0.2ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-11-02 11:01:00.719646"], ["id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.6ms) 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  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.2ms) 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]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-11-02 11:01:00.744727"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.3ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.4ms) SQL (0.1ms) 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  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.780522"], ["updated_at", "2015-11-02 11:01:00.780522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) 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  (0.2ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] Wupee::NotificationTypeConfiguration Load (0.4ms) 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 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.795540"], ["updated_at", "2015-11-02 11:01:00.795540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.804231"], ["updated_at", "2015-11-02 11:01:00.804231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.809578"], ["updated_at", "2015-11-02 11:01:00.809578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]]  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.822588"], ["updated_at", "2015-11-02 11:01:00.822588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.835860"], ["updated_at", "2015-11-02 11:01:00.835860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (1.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.870120"], ["updated_at", "2015-11-02 11:01:00.870120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) SQL (0.3ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.6ms) SELECT COUNT(*) FROM "wupee_notifications"  (1.9ms) rollback transaction  (0.7ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 11:01:00.925972"], ["updated_at", "2015-11-02 11:01:00.925972"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.928672"], ["updated_at", "2015-11-02 11:01:00.928672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.3ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-02 11:01:00.948775"], ["updated_at", "2015-11-02 11:01:00.948775"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.951470"], ["updated_at", "2015-11-02 11:01:00.951470"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.3ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 11:01:00.971270"], ["updated_at", "2015-11-02 11:01:00.971270"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.2ms) 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "idx_wupee_notif_type_config_on_notification_type_id" ON "wupee_notification_type_configurations" ("notification_type_id")  (0.1ms) 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'  (0.8ms) CREATE INDEX "idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id" ON "wupee_notification_type_configurations" ("receiver_type", "receiver_id")  (0.8ms) CREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "index_wupee_notification_types_on_name" ON "wupee_notification_types" ("name")  (0.9ms) 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)  (1.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151029113122')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateWupeeNotificationTypes (20151029113100)  (0.1ms) begin transaction  (0.1ms) CREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  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)  (0.0ms) rollback transaction  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUsers (20150213150625)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213150625"]]  (0.8ms) commit transaction Migrating to CreateMessages (20150213152846)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213152846"]]  (0.8ms) commit transaction Migrating to CreateWupeeNotificationTypes (20151029113100)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.4ms) CREATE UNIQUE INDEX "index_wupee_notification_types_on_name" ON "wupee_notification_types" ("name") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029113100"]]  (2.5ms) commit transaction Migrating to CreateWupeeNotificationTypeConfigurations (20151029113101)  (0.3ms) begin transaction  (0.6ms) 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)   (0.2ms) CREATE INDEX "idx_wupee_notif_type_config_on_notification_type_id" ON "wupee_notification_type_configurations" ("notification_type_id")  (0.1ms)  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'   (0.2ms) CREATE INDEX "idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id" ON "wupee_notification_type_configurations" ("receiver_type", "receiver_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029113101"]]  (0.8ms) commit transaction Migrating to CreateWupeeNotifications (20151029113107)  (0.1ms) begin transaction  (0.3ms) 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) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029113107"]]  (0.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) 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'  (0.1ms)  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'   (0.1ms) 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' ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.339710"], ["updated_at", "2015-11-04 09:18:58.339710"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.352876"], ["updated_at", "2015-11-04 09:18:58.352876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-11-04 09:18:58.393793"], ["updated_at", "2015-11-04 09:18:58.393793"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.396120"], ["updated_at", "2015-11-04 09:18:58.396120"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.403147"], ["updated_at", "2015-11-04 09:18:58.403147"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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.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)  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-11-04 09:18:58.435376"], ["updated_at", "2015-11-04 09:18:58.435376"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.438158"], ["updated_at", "2015-11-04 09:18:58.438158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.4ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.454183"], ["updated_at", "2015-11-04 09:18:58.454183"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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 (3.1ms) Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.2ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-11-04 09:18:58.467525"], ["updated_at", "2015-11-04 09:18:58.467525"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.469996"], ["updated_at", "2015-11-04 09:18:58.469996"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.479005"], ["updated_at", "2015-11-04 09:18:58.479005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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)  (1.7ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.505870"], ["updated_at", "2015-11-04 09:18:58.505870"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.508556"], ["updated_at", "2015-11-04 09:18:58.508556"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.1ms) 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"]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.2ms) Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-04 09:18:58.685053"], ["updated_at", "2015-11-04 09:18:58.685053"]]  (0.0ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-11-04 09:18:58.687091"], ["updated_at", "2015-11-04 09:18:58.687091"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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:58.690438"], ["updated_at", "2015-11-04 09:18:58.690438"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.693524"], ["updated_at", "2015-11-04 09:18:58.693524"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-04 09:18:58.699565"], ["updated_at", "2015-11-04 09:18:58.699565"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-11-04 09:18:58.701797"], ["updated_at", "2015-11-04 09:18:58.701797"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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:58.704380"], ["updated_at", "2015-11-04 09:18:58.704380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.707819"], ["updated_at", "2015-11-04 09:18:58.707819"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 22.3ms  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-04 09:18:58.737082"], ["updated_at", "2015-11-04 09:18:58.737082"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-11-04 09:18:58.739771"], ["updated_at", "2015-11-04 09:18:58.739771"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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:58.742964"], ["updated_at", "2015-11-04 09:18:58.742964"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.746378"], ["updated_at", "2015-11-04 09:18:58.746378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 1.1ms  (2.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-04 09:18:58.759283"], ["updated_at", "2015-11-04 09:18:58.759283"]]  (0.3ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-11-04 09:18:58.764720"], ["updated_at", "2015-11-04 09:18:58.764720"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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:58.767496"], ["updated_at", "2015-11-04 09:18:58.767496"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.770302"], ["updated_at", "2015-11-04 09:18:58.770302"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 0.6ms  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-04 09:18:58.775527"], ["updated_at", "2015-11-04 09:18:58.775527"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-11-04 09:18:58.778363"], ["updated_at", "2015-11-04 09:18:58.778363"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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:58.781714"], ["updated_at", "2015-11-04 09:18:58.781714"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.784755"], ["updated_at", "2015-11-04 09:18:58.784755"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 0.6ms  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-11-04 09:18:58.792348"], ["updated_at", "2015-11-04 09:18:58.792348"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.797546"], ["updated_at", "2015-11-04 09:18:58.797546"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.801064"], ["updated_at", "2015-11-04 09:18:58.801064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.1ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-11-04 09:18:58.821860"], ["updated_at", "2015-11-04 09:18:58.821860"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-11-04 09:18:58.829473"], ["updated_at", "2015-11-04 09:18:58.829473"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.832128"], ["updated_at", "2015-11-04 09:18:58.832128"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-11-04 09:18:58.840816"], ["updated_at", "2015-11-04 09:18:58.840816"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-11-04 09:18:58.848573"], ["updated_at", "2015-11-04 09:18:58.848573"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.851329"], ["updated_at", "2015-11-04 09:18:58.851329"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-11-04 09:18:58.864434"], ["updated_at", "2015-11-04 09:18:58.864434"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.884316"], ["updated_at", "2015-11-04 09:18:58.884316"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.888782"], ["updated_at", "2015-11-04 09:18:58.888782"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.891103"], ["updated_at", "2015-11-04 09:18:58.891103"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-11-04 09:18:58.897951"], ["updated_at", "2015-11-04 09:18:58.897951"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-11-04 09:18:58.904393"], ["updated_at", "2015-11-04 09:18:58.904393"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.906978"], ["updated_at", "2015-11-04 09:18:58.906978"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.917956"], ["updated_at", "2015-11-04 09:18:58.917956"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.930547"], ["updated_at", "2015-11-04 09:18:58.930547"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.933214"], ["updated_at", "2015-11-04 09:18:58.933214"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.938693"], ["updated_at", "2015-11-04 09:18:58.938693"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.940550"], ["updated_at", "2015-11-04 09:18:58.940550"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.946788"], ["updated_at", "2015-11-04 09:18:58.946788"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.949507"], ["updated_at", "2015-11-04 09:18:58.949507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-11-04 09:18:58.955030"], ["updated_at", "2015-11-04 09:18:58.955030"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.980002"], ["updated_at", "2015-11-04 09:18:58.980002"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.983742"], ["updated_at", "2015-11-04 09:18:58.983742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.993438"], ["updated_at", "2015-11-04 09:18:58.993438"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.996683"], ["updated_at", "2015-11-04 09:18:58.996683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (1.0ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:59.002888"], ["updated_at", "2015-11-04 09:18:59.002888"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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:59.009578"], ["updated_at", "2015-11-04 09:18:59.009578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:59.014628"], ["updated_at", "2015-11-04 09:18:59.014628"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.9ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:59.019111"], ["updated_at", "2015-11-04 09:18:59.019111"]]  (0.2ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-11-04 09:18:59.026400"], ["updated_at", "2015-11-04 09:18:59.026400"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.032696"], ["updated_at", "2015-11-04 09:18:59.032696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-11-04 09:18:59.039123"], ["updated_at", "2015-11-04 09:18:59.039123"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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-11-04 09:18:59.041958"], ["updated_at", "2015-11-04 09:18:59.041958"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-11-04 09:18:59.051981"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.2ms) 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]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-11-04 09:18:59.064939"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.4ms) SQL (0.1ms) 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  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.104706"], ["updated_at", "2015-11-04 09:18:59.104706"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.113383"], ["updated_at", "2015-11-04 09:18:59.113383"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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: 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  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.118278"], ["updated_at", "2015-11-04 09:18:59.118278"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.121424"], ["updated_at", "2015-11-04 09:18:59.121424"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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: 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  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]]  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.127924"], ["updated_at", "2015-11-04 09:18:59.127924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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: 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.132304"], ["updated_at", "2015-11-04 09:18:59.132304"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.135072"], ["updated_at", "2015-11-04 09:18:59.135072"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:59.152462"], ["updated_at", "2015-11-04 09:18:59.152462"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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:59.155088"], ["updated_at", "2015-11-04 09:18:59.155088"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.0ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-04 09:18:59.166208"], ["updated_at", "2015-11-04 09:18:59.166208"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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:59.168789"], ["updated_at", "2015-11-04 09:18:59.168789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.0ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:59.180694"], ["updated_at", "2015-11-04 09:18:59.180694"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 SQL (1.4ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:44.658677"], ["updated_at", "2015-11-04 09:19:44.658677"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.670770"], ["updated_at", "2015-11-04 09:19:44.670770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 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)  (8.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-11-04 09:19:44.718738"], ["updated_at", "2015-11-04 09:19:44.718738"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:44.721271"], ["updated_at", "2015-11-04 09:19:44.721271"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.728547"], ["updated_at", "2015-11-04 09:19:44.728547"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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 (3.3ms) Rendered wupee/api/notifications/index.json.jbuilder (8.8ms) Completed 200 OK in 10ms (Views: 8.9ms | ActiveRecord: 0.3ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-11-04 09:19:44.755540"], ["updated_at", "2015-11-04 09:19:44.755540"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:44.758207"], ["updated_at", "2015-11-04 09:19:44.758207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.766517"], ["updated_at", "2015-11-04 09:19:44.766517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.3ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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 (2.3ms) Rendered wupee/api/notifications/show.json.jbuilder (3.8ms) Completed 200 OK in 12ms (Views: 5.6ms | ActiveRecord: 0.4ms)  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-11-04 09:19:44.788918"], ["updated_at", "2015-11-04 09:19:44.788918"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:44.791022"], ["updated_at", "2015-11-04 09:19:44.791022"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.797441"], ["updated_at", "2015-11-04 09:19:44.797441"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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)  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:44.816574"], ["updated_at", "2015-11-04 09:19:44.816574"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.819945"], ["updated_at", "2015-11-04 09:19:44.819945"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.3ms) 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"]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 7ms (ActiveRecord: 0.4ms) Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-04 09:19:44.989595"], ["updated_at", "2015-11-04 09:19:44.989595"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-11-04 09:19:44.991799"], ["updated_at", "2015-11-04 09:19:44.991799"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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:44.994745"], ["updated_at", "2015-11-04 09:19:44.994745"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.998528"], ["updated_at", "2015-11-04 09:19:44.998528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-04 09:19:45.004738"], ["updated_at", "2015-11-04 09:19:45.004738"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-11-04 09:19:45.007063"], ["updated_at", "2015-11-04 09:19:45.007063"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.010141"], ["updated_at", "2015-11-04 09:19:45.010141"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.013589"], ["updated_at", "2015-11-04 09:19:45.013589"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.5ms) SQL (0.1ms) 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 (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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:45.052744"], ["updated_at", "2015-11-04 09:19:45.052744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-04 09:19:45.070842"], ["updated_at", "2015-11-04 09:19:45.070842"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-11-04 09:19:45.073284"], ["updated_at", "2015-11-04 09:19:45.073284"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.076458"], ["updated_at", "2015-11-04 09:19:45.076458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.080407"], ["updated_at", "2015-11-04 09:19:45.080407"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.0ms) 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.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  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:45.098134"], ["updated_at", "2015-11-04 09:19:45.098134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-11-04 09:19:45.116805"], ["updated_at", "2015-11-04 09:19:45.116805"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.119933"], ["updated_at", "2015-11-04 09:19:45.119933"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.122682"], ["updated_at", "2015-11-04 09:19:45.122682"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.2ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-11-04 09:19:45.135621"], ["updated_at", "2015-11-04 09:19:45.135621"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-11-04 09:19:45.142024"], ["updated_at", "2015-11-04 09:19:45.142024"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.144838"], ["updated_at", "2015-11-04 09:19:45.144838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-11-04 09:19:45.156539"], ["updated_at", "2015-11-04 09:19:45.156539"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) 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"]]  (0.2ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-11-04 09:19:45.172550"], ["updated_at", "2015-11-04 09:19:45.172550"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.174908"], ["updated_at", "2015-11-04 09:19:45.174908"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-11-04 09:19:45.183549"], ["updated_at", "2015-11-04 09:19:45.183549"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:45.194652"], ["updated_at", "2015-11-04 09:19:45.194652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.200709"], ["updated_at", "2015-11-04 09:19:45.200709"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.204393"], ["updated_at", "2015-11-04 09:19:45.204393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.3ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-11-04 09:19:45.219327"], ["updated_at", "2015-11-04 09:19:45.219327"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-11-04 09:19:45.226501"], ["updated_at", "2015-11-04 09:19:45.226501"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.228734"], ["updated_at", "2015-11-04 09:19:45.228734"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:45.236544"], ["updated_at", "2015-11-04 09:19:45.236544"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.240994"], ["updated_at", "2015-11-04 09:19:45.240994"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.243628"], ["updated_at", "2015-11-04 09:19:45.243628"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:45.252415"], ["updated_at", "2015-11-04 09:19:45.252415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.255803"], ["updated_at", "2015-11-04 09:19:45.255803"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.5ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.270138"], ["updated_at", "2015-11-04 09:19:45.270138"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.273203"], ["updated_at", "2015-11-04 09:19:45.273203"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-11-04 09:19:45.278544"], ["updated_at", "2015-11-04 09:19:45.278544"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.291740"], ["updated_at", "2015-11-04 09:19:45.291740"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.295445"], ["updated_at", "2015-11-04 09:19:45.295445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.7ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.8ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.311509"], ["updated_at", "2015-11-04 09:19:45.311509"]]  (0.4ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.319882"], ["updated_at", "2015-11-04 09:19:45.319882"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.326680"], ["updated_at", "2015-11-04 09:19:45.326680"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.329909"], ["updated_at", "2015-11-04 09:19:45.329909"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.334128"], ["updated_at", "2015-11-04 09:19:45.334128"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.338449"], ["updated_at", "2015-11-04 09:19:45.338449"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-11-04 09:19:45.340359"], ["updated_at", "2015-11-04 09:19:45.340359"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.342991"], ["updated_at", "2015-11-04 09:19:45.342991"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 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 SQL (0.1ms) 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"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-11-04 09:19:45.352384"], ["updated_at", "2015-11-04 09:19:45.352384"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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-11-04 09:19:45.356138"], ["updated_at", "2015-11-04 09:19:45.356138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-11-04 09:19:45.364689"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) 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]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.5ms) 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  (0.3ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.3ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-11-04 09:19:45.381190"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) SQL (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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.404405"], ["updated_at", "2015-11-04 09:19:45.404405"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.411806"], ["updated_at", "2015-11-04 09:19:45.411806"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.416026"], ["updated_at", "2015-11-04 09:19:45.416026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.418856"], ["updated_at", "2015-11-04 09:19:45.418856"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]]  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.425476"], ["updated_at", "2015-11-04 09:19:45.425476"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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: 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.429983"], ["updated_at", "2015-11-04 09:19:45.429983"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.433086"], ["updated_at", "2015-11-04 09:19:45.433086"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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.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  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.450781"], ["updated_at", "2015-11-04 09:19:45.450781"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.456184"], ["updated_at", "2015-11-04 09:19:45.456184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-04 09:19:45.471099"], ["updated_at", "2015-11-04 09:19:45.471099"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.476565"], ["updated_at", "2015-11-04 09:19:45.476565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.0ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.4ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.9ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.492903"], ["updated_at", "2015-11-04 09:19:45.492903"]]  (0.2ms) SELECT "users"."id" FROM "users"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.5ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-24 08:57:46.409042"], ["updated_at", "2015-11-24 08:57:46.409042"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.6ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.7ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.424319"], ["updated_at", "2015-11-24 08:57:46.424319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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)  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-11-24 08:57:46.466720"], ["updated_at", "2015-11-24 08:57:46.466720"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-24 08:57:46.468770"], ["updated_at", "2015-11-24 08:57:46.468770"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.474863"], ["updated_at", "2015-11-24 08:57:46.474863"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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 (3.8ms) Rendered wupee/api/notifications/index.json.jbuilder (12.0ms) Completed 200 OK in 13ms (Views: 12.1ms | ActiveRecord: 0.3ms)  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-11-24 08:57:46.496657"], ["updated_at", "2015-11-24 08:57:46.496657"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-24 08:57:46.498726"], ["updated_at", "2015-11-24 08:57:46.498726"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.514462"], ["updated_at", "2015-11-24 08:57:46.514462"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.1ms) 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 (2.7ms) Rendered wupee/api/notifications/show.json.jbuilder (4.6ms) Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.3ms)  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-11-24 08:57:46.530395"], ["updated_at", "2015-11-24 08:57:46.530395"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-24 08:57:46.532605"], ["updated_at", "2015-11-24 08:57:46.532605"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.539562"], ["updated_at", "2015-11-24 08:57:46.539562"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Wupee::Notification Load (0.1ms) 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]] SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationType Load (0.0ms) 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)  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-24 08:57:46.555589"], ["updated_at", "2015-11-24 08:57:46.555589"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.557794"], ["updated_at", "2015-11-24 08:57:46.557794"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON Wupee::Notification Load (0.2ms) 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"]] SQL (0.0ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]  (1.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-24 08:57:46.745104"], ["updated_at", "2015-11-24 08:57:46.745104"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-11-24 08:57:46.747415"], ["updated_at", "2015-11-24 08:57:46.747415"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.750539"], ["updated_at", "2015-11-24 08:57:46.750539"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.753504"], ["updated_at", "2015-11-24 08:57:46.753504"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-24 08:57:46.760141"], ["updated_at", "2015-11-24 08:57:46.760141"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-11-24 08:57:46.762081"], ["updated_at", "2015-11-24 08:57:46.762081"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.764859"], ["updated_at", "2015-11-24 08:57:46.764859"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.767722"], ["updated_at", "2015-11-24 08:57:46.767722"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.2ms) SQL (0.1ms) 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 (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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-24 08:57:46.805232"], ["updated_at", "2015-11-24 08:57:46.805232"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.1ms) 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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-24 08:57:46.814315"], ["updated_at", "2015-11-24 08:57:46.814315"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-11-24 08:57:46.816513"], ["updated_at", "2015-11-24 08:57:46.816513"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.1ms) 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.819176"], ["updated_at", "2015-11-24 08:57:46.819176"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.822061"], ["updated_at", "2015-11-24 08:57:46.822061"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) SQL (0.0ms) 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.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  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-24 08:57:46.839096"], ["updated_at", "2015-11-24 08:57:46.839096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.1ms) SQL (0.1ms) 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  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-11-24 08:57:46.858245"], ["updated_at", "2015-11-24 08:57:46.858245"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-24 08:57:46.861258"], ["updated_at", "2015-11-24 08:57:46.861258"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.864093"], ["updated_at", "2015-11-24 08:57:46.864093"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-11-24 08:57:46.876754"], ["updated_at", "2015-11-24 08:57:46.876754"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-11-24 08:57:46.882799"], ["updated_at", "2015-11-24 08:57:46.882799"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.885378"], ["updated_at", "2015-11-24 08:57:46.885378"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-11-24 08:57:46.895559"], ["updated_at", "2015-11-24 08:57:46.895559"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-11-24 08:57:46.901250"], ["updated_at", "2015-11-24 08:57:46.901250"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.904059"], ["updated_at", "2015-11-24 08:57:46.904059"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]  (1.9ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-11-24 08:57:46.921240"], ["updated_at", "2015-11-24 08:57:46.921240"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-24 08:57:46.932902"], ["updated_at", "2015-11-24 08:57:46.932902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-24 08:57:46.937347"], ["updated_at", "2015-11-24 08:57:46.937347"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.939655"], ["updated_at", "2015-11-24 08:57:46.939655"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-11-24 08:57:46.945740"], ["updated_at", "2015-11-24 08:57:46.945740"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-11-24 08:57:46.952788"], ["updated_at", "2015-11-24 08:57:46.952788"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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.956485"], ["updated_at", "2015-11-24 08:57:46.956485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-24 08:57:46.972865"], ["updated_at", "2015-11-24 08:57:46.972865"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-24 08:57:46.977311"], ["updated_at", "2015-11-24 08:57:46.977311"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.979835"], ["updated_at", "2015-11-24 08:57:46.979835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-24 08:57:46.985687"], ["updated_at", "2015-11-24 08:57:46.985687"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.987445"], ["updated_at", "2015-11-24 08:57:46.987445"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-24 08:57:46.994003"], ["updated_at", "2015-11-24 08:57:46.994003"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.996628"], ["updated_at", "2015-11-24 08:57:46.996628"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-11-24 08:57:47.001422"], ["updated_at", "2015-11-24 08:57:47.001422"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) 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  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-24 08:57:47.015448"], ["updated_at", "2015-11-24 08:57:47.015448"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.017739"], ["updated_at", "2015-11-24 08:57:47.017739"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-24 08:57:47.034095"], ["updated_at", "2015-11-24 08:57:47.034095"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.038740"], ["updated_at", "2015-11-24 08:57:47.038740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-24 08:57:47.048128"], ["updated_at", "2015-11-24 08:57:47.048128"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.050798"], ["updated_at", "2015-11-24 08:57:47.050798"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-24 08:57:47.055971"], ["updated_at", "2015-11-24 08:57:47.055971"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-24 08:57:47.060276"], ["updated_at", "2015-11-24 08:57:47.060276"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-11-24 08:57:47.062286"], ["updated_at", "2015-11-24 08:57:47.062286"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (0.2ms) 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.066022"], ["updated_at", "2015-11-24 08:57:47.066022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-11-24 08:57:47.073552"], ["updated_at", "2015-11-24 08:57:47.073552"]]  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.2ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 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 SQL (0.3ms) 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-11-24 08:57:47.082688"], ["updated_at", "2015-11-24 08:57:47.082688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-11-24 08:57:47.093259"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) 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 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-11-24 08:57:47.101389"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) SQL (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.128727"], ["updated_at", "2015-11-24 08:57:47.128727"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.132902"], ["updated_at", "2015-11-24 08:57:47.132902"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.136400"], ["updated_at", "2015-11-24 08:57:47.136400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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: 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.140501"], ["updated_at", "2015-11-24 08:57:47.140501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.0ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]]  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications" Wupee::NotificationTypeConfiguration Load (0.2ms) 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.149239"], ["updated_at", "2015-11-24 08:57:47.149239"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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.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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.153432"], ["updated_at", "2015-11-24 08:57:47.153432"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) SQL (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"  (4.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-24 08:57:47.177133"], ["updated_at", "2015-11-24 08:57:47.177133"]]  (0.0ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.179465"], ["updated_at", "2015-11-24 08:57:47.179465"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] SQL (0.0ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] Wupee::NotificationTypeConfiguration Load (0.1ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-24 08:57:47.190455"], ["updated_at", "2015-11-24 08:57:47.190455"]]  (0.1ms) SELECT "users"."id" FROM "users" Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_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.193184"], ["updated_at", "2015-11-24 08:57:47.193184"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Wupee::NotificationTypeConfiguration Load (0.0ms) 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"]] SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-24 08:57:47.203705"], ["updated_at", "2015-11-24 08:57:47.203705"]]  (0.1ms) SELECT "users"."id" FROM "users"  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 SQL (2.9ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations" Wupee::NotificationTypeConfiguration Load (0.3ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction