notify_with 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3173ecd1a4779e09c8fbfcaca08042117de9b342
4
- data.tar.gz: 7348cc427713287bf0b640590dd4523ab035e9dc
3
+ metadata.gz: 41c870dbebc9575d1291c24cd7ecb533e9df6757
4
+ data.tar.gz: 5105d58fd969028ce116a865db19798a017b520b
5
5
  SHA512:
6
- metadata.gz: 076d6743c70272b6df0077e83c5ca887de3ce84d5f7a1f263a225792f87d38956063cfca9541519c77a50e6d82c40b0623fb6d7a5f41a2806c8764c075cf49c2
7
- data.tar.gz: 1880410b455978697059f4c20d804f15008c75d37f1e58d3139043385c7acc5c4d8ccb3b4cdf1d7620857dbb2d012776efbb3aa16f1e64eec970fc37e73f2b83
6
+ metadata.gz: c9f59808daf4e6f62c9083d723063b49686aa160b687b9cda58542c4318316bc3b8461d9b8da54bea1107bdfa628b7ef17669d0f3b5289ba5d796700ae843a98
7
+ data.tar.gz: 29af052c6a2ddce8086260c3eb829dd762048bb96a4cd979d2a4d1bca18057dcc69356da0acd2508380c2a55d5bc6ae322805b88647b72af0f2fab10d59f7737
@@ -0,0 +1,14 @@
1
+ module NotifyWith
2
+ module NotificationAttachedObject
3
+ extend ActiveSupport::Concern
4
+
5
+ included do
6
+ after_destroy :clean_notification
7
+
8
+ def clean_notification
9
+ ::Notification.where('attached_object_id = :id and attached_object_type = :type', {id: id, type: self.class.to_s})
10
+ .destroy_all
11
+ end
12
+ end
13
+ end
14
+ end
@@ -1,3 +1,3 @@
1
1
  module NotifyWith
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -1,2 +1,3 @@
1
1
  class Message < ActiveRecord::Base
2
+ include NotifyWith::NotificationAttachedObject
2
3
  end
@@ -2400,3 +2400,103 @@ Migrating to CreateNotification (20150216115438)
2400
2400
   (9.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
2401
2401
   (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
2402
2402
   (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
2403
+  (1.6ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2404
+  (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)
2405
+  (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) 
2406
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
2407
+  (0.4ms) select sqlite_version(*)
2408
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2409
+  (0.1ms) SELECT version FROM "schema_migrations"
2410
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
2411
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
2412
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
2413
+  (1.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2414
+  (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)
2415
+  (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) 
2416
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
2417
+  (0.1ms) select sqlite_version(*)
2418
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2419
+  (0.1ms) SELECT version FROM "schema_migrations"
2420
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
2421
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
2422
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
2423
+  (9.2ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2424
+  (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)
2425
+  (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) 
2426
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
2427
+  (0.1ms) select sqlite_version(*)
2428
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2429
+  (0.1ms) SELECT version FROM "schema_migrations"
2430
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
2431
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
2432
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
2433
+  (9.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2434
+  (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)
2435
+  (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) 
2436
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
2437
+  (0.1ms) select sqlite_version(*)
2438
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2439
+  (0.1ms) SELECT version FROM "schema_migrations"
2440
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
2441
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
2442
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
2443
+  (9.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2444
+  (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)
2445
+  (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) 
2446
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
2447
+  (0.1ms) select sqlite_version(*)
2448
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2449
+  (0.1ms) SELECT version FROM "schema_migrations"
2450
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
2451
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
2452
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
2453
+  (1.0ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2454
+  (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)
2455
+  (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) 
2456
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
2457
+  (0.1ms) select sqlite_version(*)
2458
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2459
+  (0.1ms) SELECT version FROM "schema_migrations"
2460
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
2461
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
2462
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
2463
+  (9.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2464
+  (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)
2465
+  (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) 
2466
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
2467
+  (0.1ms) select sqlite_version(*)
2468
+  (2.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2469
+  (0.3ms) SELECT version FROM "schema_migrations"
2470
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
2471
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
2472
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
2473
+  (0.9ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2474
+  (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)
2475
+  (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) 
2476
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
2477
+  (0.1ms) select sqlite_version(*)
2478
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2479
+  (0.1ms) SELECT version FROM "schema_migrations"
2480
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
2481
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
2482
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
2483
+  (1.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2484
+  (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)
2485
+  (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) 
2486
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
2487
+  (0.1ms) select sqlite_version(*)
2488
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2489
+  (0.1ms) SELECT version FROM "schema_migrations"
2490
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
2491
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
2492
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
2493
+  (1.0ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2494
+  (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)
2495
+  (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) 
2496
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
2497
+  (0.1ms) select sqlite_version(*)
2498
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2499
+  (0.1ms) SELECT version FROM "schema_migrations"
2500
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
2501
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
2502
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
@@ -37777,3 +37777,3905 @@ Content-Transfer-Encoding: 7bit
37777
37777
   (0.0ms) rollback transaction
37778
37778
   (0.0ms) begin transaction
37779
37779
   (0.0ms) rollback transaction
37780
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
37781
+  (9.5ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
37782
+  (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)
37783
+  (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) 
37784
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
37785
+  (0.1ms) select sqlite_version(*)
37786
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
37787
+  (0.1ms) SELECT version FROM "schema_migrations"
37788
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
37789
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
37790
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
37791
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
37792
+  (0.1ms) begin transaction
37793
+  (0.0ms) SAVEPOINT active_record_1
37794
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-02-17 13:39:19.179388"], ["updated_at", "2015-02-17 13:39:19.179388"]]
37795
+  (0.1ms) RELEASE SAVEPOINT active_record_1
37796
+  (0.1ms) SAVEPOINT active_record_1
37797
+ SQL (2.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:39:19.195881"], ["updated_at", "2015-02-17 13:39:19.195881"]]
37798
+  (0.1ms) RELEASE SAVEPOINT active_record_1
37799
+  (0.1ms) SAVEPOINT active_record_1
37800
+ 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-02-17 13:39:19.200852"], ["updated_at", "2015-02-17 13:39:19.200852"]]
37801
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37802
+ Processing by API::NotificationsController#index as JSON
37803
+ Rendered api/notifications/index.json.jbuilder (0.3ms)
37804
+ Completed 200 OK in 22ms (Views: 9.6ms | ActiveRecord: 0.0ms)
37805
+  (0.9ms) rollback transaction
37806
+  (0.1ms) begin transaction
37807
+  (0.0ms) SAVEPOINT active_record_1
37808
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-02-17 13:39:19.245731"], ["updated_at", "2015-02-17 13:39:19.245731"]]
37809
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37810
+  (0.0ms) SAVEPOINT active_record_1
37811
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:39:19.247770"], ["updated_at", "2015-02-17 13:39:19.247770"]]
37812
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37813
+  (0.0ms) SAVEPOINT active_record_1
37814
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:39:19.249485"], ["updated_at", "2015-02-17 13:39:19.249485"]]
37815
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37816
+ Processing by API::NotificationsController#index as JSON
37817
+ Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
37818
+ Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
37819
+ Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms)
37820
+ Rendered api/notifications/index.json.jbuilder (13.4ms)
37821
+ Completed 200 OK in 15ms (Views: 13.6ms | ActiveRecord: 0.2ms)
37822
+  (0.7ms) rollback transaction
37823
+  (0.1ms) begin transaction
37824
+  (0.0ms) SAVEPOINT active_record_1
37825
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-02-17 13:39:19.273781"], ["updated_at", "2015-02-17 13:39:19.273781"]]
37826
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37827
+  (0.0ms) SAVEPOINT active_record_1
37828
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:39:19.275894"], ["updated_at", "2015-02-17 13:39:19.275894"]]
37829
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37830
+  (0.0ms) SAVEPOINT active_record_1
37831
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:39:19.277685"], ["updated_at", "2015-02-17 13:39:19.277685"]]
37832
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37833
+ Processing by API::NotificationsController#show as JSON
37834
+ Parameters: {"id"=>"1"}
37835
+ 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]]
37836
+ Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
37837
+ Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms)
37838
+ Rendered api/notifications/show.json.jbuilder (2.0ms)
37839
+ Completed 200 OK in 9ms (Views: 3.2ms | ActiveRecord: 0.2ms)
37840
+  (1.4ms) rollback transaction
37841
+  (0.1ms) begin transaction
37842
+  (0.1ms) SAVEPOINT active_record_1
37843
+ SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-02-17 13:39:19.297550"], ["updated_at", "2015-02-17 13:39:19.297550"]]
37844
+  (0.2ms) RELEASE SAVEPOINT active_record_1
37845
+  (0.1ms) SAVEPOINT active_record_1
37846
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:39:19.302005"], ["updated_at", "2015-02-17 13:39:19.302005"]]
37847
+  (0.1ms) RELEASE SAVEPOINT active_record_1
37848
+  (0.0ms) SAVEPOINT active_record_1
37849
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:39:19.304659"], ["updated_at", "2015-02-17 13:39:19.304659"]]
37850
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37851
+ Processing by API::NotificationsController#update as JSON
37852
+ Parameters: {"id"=>"1"}
37853
+ 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]]
37854
+ SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]
37855
+ Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
37856
+ Rendered api/notifications/_notify_new_message.json.jbuilder (0.0ms)
37857
+ Rendered api/notifications/show.json.jbuilder (1.3ms)
37858
+ Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.2ms)
37859
+  (0.6ms) rollback transaction
37860
+  (0.1ms) begin transaction
37861
+  (0.1ms) SAVEPOINT active_record_1
37862
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-02-17 13:39:19.326046"], ["updated_at", "2015-02-17 13:39:19.326046"]]
37863
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37864
+  (0.0ms) SAVEPOINT active_record_1
37865
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:39:19.327949"], ["updated_at", "2015-02-17 13:39:19.327949"]]
37866
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37867
+  (0.1ms) SAVEPOINT active_record_1
37868
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:39:19.329760"], ["updated_at", "2015-02-17 13:39:19.329760"]]
37869
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37870
+ Processing by API::NotificationsController#update_all as JSON
37871
+ Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = 'f' ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"]]
37872
+ SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]
37873
+ Completed 204 No Content in 3ms (ActiveRecord: 0.2ms)
37874
+ Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]
37875
+  (0.7ms) rollback transaction
37876
+  (0.1ms) begin transaction
37877
+  (0.1ms) SAVEPOINT active_record_1
37878
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-02-17 13:39:19.517839"], ["updated_at", "2015-02-17 13:39:19.517839"]]
37879
+  (0.1ms) RELEASE SAVEPOINT active_record_1
37880
+  (0.1ms) SAVEPOINT active_record_1
37881
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:39:19.520122"], ["updated_at", "2015-02-17 13:39:19.520122"]]
37882
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37883
+  (0.0ms) SAVEPOINT active_record_1
37884
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:39:19.522157"], ["updated_at", "2015-02-17 13:39:19.522157"]]
37885
+  (0.1ms) RELEASE SAVEPOINT active_record_1
37886
+  (0.6ms) rollback transaction
37887
+  (0.1ms) begin transaction
37888
+  (0.0ms) SAVEPOINT active_record_1
37889
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-02-17 13:39:19.528060"], ["updated_at", "2015-02-17 13:39:19.528060"]]
37890
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37891
+  (0.1ms) SAVEPOINT active_record_1
37892
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:39:19.530365"], ["updated_at", "2015-02-17 13:39:19.530365"]]
37893
+  (0.1ms) RELEASE SAVEPOINT active_record_1
37894
+  (0.0ms) SAVEPOINT active_record_1
37895
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:39:19.532721"], ["updated_at", "2015-02-17 13:39:19.532721"]]
37896
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37897
+ Rendered notifications_mailer/notify_new_message.html.erb (1.9ms)
37898
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
37899
+
37900
+ NotificationsMailer#send_mail_by: processed outbound mail in 15.4ms
37901
+
37902
+ Sent mail to user7@sleede.com (10.2ms)
37903
+ Date: Tue, 17 Feb 2015 14:39:19 +0100
37904
+ From: contact@sleede.com
37905
+ To: user7@sleede.com
37906
+ Message-ID: <54e3448788243_7c0c3ff335465bf059480@pc12.home.mail>
37907
+ Subject: subject notify new message
37908
+ Mime-Version: 1.0
37909
+ Content-Type: text/html;
37910
+ charset=UTF-8
37911
+ Content-Transfer-Encoding: 7bit
37912
+
37913
+ <p>user7</p>
37914
+ <p>message body</p>
37915
+
37916
+  (0.7ms) rollback transaction
37917
+  (0.1ms) begin transaction
37918
+  (0.1ms) SAVEPOINT active_record_1
37919
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-02-17 13:39:19.565566"], ["updated_at", "2015-02-17 13:39:19.565566"]]
37920
+  (0.1ms) RELEASE SAVEPOINT active_record_1
37921
+  (0.1ms) SAVEPOINT active_record_1
37922
+ SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:39:19.568238"], ["updated_at", "2015-02-17 13:39:19.568238"]]
37923
+  (0.1ms) RELEASE SAVEPOINT active_record_1
37924
+  (0.0ms) SAVEPOINT active_record_1
37925
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:39:19.570378"], ["updated_at", "2015-02-17 13:39:19.570378"]]
37926
+  (0.1ms) RELEASE SAVEPOINT active_record_1
37927
+ Rendered notifications_mailer/notify_new_message.html.erb (0.1ms)
37928
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
37929
+
37930
+ NotificationsMailer#send_mail_by: processed outbound mail in 2.0ms
37931
+
37932
+ Sent mail to user8@sleede.com (2.0ms)
37933
+ Date: Tue, 17 Feb 2015 14:39:19 +0100
37934
+ From: contact@sleede.com
37935
+ To: user8@sleede.com
37936
+ Message-ID: <54e344878c414_7c0c3ff335465bf05956a@pc12.home.mail>
37937
+ Subject: subject notify new message
37938
+ Mime-Version: 1.0
37939
+ Content-Type: text/html;
37940
+ charset=UTF-8
37941
+ Content-Transfer-Encoding: 7bit
37942
+
37943
+ <p>user8</p>
37944
+ <p>message body</p>
37945
+
37946
+  (1.1ms) rollback transaction
37947
+  (0.1ms) begin transaction
37948
+  (0.1ms) SAVEPOINT active_record_1
37949
+ SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-02-17 13:39:19.581690"], ["updated_at", "2015-02-17 13:39:19.581690"]]
37950
+  (0.1ms) RELEASE SAVEPOINT active_record_1
37951
+  (0.1ms) SAVEPOINT active_record_1
37952
+ SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:39:19.585989"], ["updated_at", "2015-02-17 13:39:19.585989"]]
37953
+  (0.1ms) RELEASE SAVEPOINT active_record_1
37954
+  (0.1ms) SAVEPOINT active_record_1
37955
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:39:19.588447"], ["updated_at", "2015-02-17 13:39:19.588447"]]
37956
+  (0.1ms) RELEASE SAVEPOINT active_record_1
37957
+ Rendered notifications_mailer/notify_new_message.html.erb (0.0ms)
37958
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
37959
+
37960
+ NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms
37961
+
37962
+ Sent mail to user9@sleede.com (1.4ms)
37963
+ Date: Tue, 17 Feb 2015 14:39:19 +0100
37964
+ From: contact@sleede.com
37965
+ To: user9@sleede.com
37966
+ Message-ID: <54e344879086d_7c0c3ff335465bf059634@pc12.home.mail>
37967
+ Subject: subject notify new message
37968
+ Mime-Version: 1.0
37969
+ Content-Type: text/html;
37970
+ charset=UTF-8
37971
+ Content-Transfer-Encoding: 7bit
37972
+
37973
+ <p>user9</p>
37974
+ <p>message body</p>
37975
+
37976
+  (0.6ms) rollback transaction
37977
+  (0.1ms) begin transaction
37978
+  (0.6ms) SAVEPOINT active_record_1
37979
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-02-17 13:39:19.596862"], ["updated_at", "2015-02-17 13:39:19.596862"]]
37980
+  (1.0ms) RELEASE SAVEPOINT active_record_1
37981
+  (0.1ms) SAVEPOINT active_record_1
37982
+ SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:39:19.601405"], ["updated_at", "2015-02-17 13:39:19.601405"]]
37983
+  (0.1ms) RELEASE SAVEPOINT active_record_1
37984
+  (0.1ms) SAVEPOINT active_record_1
37985
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:39:19.604414"], ["updated_at", "2015-02-17 13:39:19.604414"]]
37986
+  (0.1ms) RELEASE SAVEPOINT active_record_1
37987
+ Rendered notifications_mailer/notify_new_message.html.erb (0.1ms)
37988
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
37989
+
37990
+ NotificationsMailer#send_mail_by: processed outbound mail in 2.0ms
37991
+
37992
+ Sent mail to user10@sleede.com (2.4ms)
37993
+ Date: Tue, 17 Feb 2015 14:39:19 +0100
37994
+ From: contact@sleede.com
37995
+ To: user10@sleede.com
37996
+ Message-ID: <54e3448794d3e_7c0c3ff335465bf059711@pc12.home.mail>
37997
+ Subject: subject notify new message
37998
+ Mime-Version: 1.0
37999
+ Content-Type: text/html;
38000
+ charset=UTF-8
38001
+ Content-Transfer-Encoding: 7bit
38002
+
38003
+ <p>user10</p>
38004
+ <p>message body</p>
38005
+
38006
+  (1.0ms) rollback transaction
38007
+  (0.1ms) begin transaction
38008
+  (0.1ms) SAVEPOINT active_record_1
38009
+ SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:39:19.622843"], ["updated_at", "2015-02-17 13:39:19.622843"]]
38010
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38011
+  (0.1ms) SAVEPOINT active_record_1
38012
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-02-17 13:39:19.625702"], ["updated_at", "2015-02-17 13:39:19.625702"]]
38013
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38014
+  (0.0ms) SAVEPOINT active_record_1
38015
+ 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-02-17 13:39:19.628958"], ["updated_at", "2015-02-17 13:39:19.628958"]]
38016
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38017
+  (0.8ms) rollback transaction
38018
+  (0.1ms) begin transaction
38019
+  (0.1ms) SAVEPOINT active_record_1
38020
+ SQL (0.8ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:39:19.635809"], ["updated_at", "2015-02-17 13:39:19.635809"]]
38021
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38022
+  (0.1ms) SAVEPOINT active_record_1
38023
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-02-17 13:39:19.639651"], ["updated_at", "2015-02-17 13:39:19.639651"]]
38024
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38025
+  (0.7ms) rollback transaction
38026
+  (0.1ms) begin transaction
38027
+  (0.1ms) SAVEPOINT active_record_1
38028
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:39:19.646304"], ["updated_at", "2015-02-17 13:39:19.646304"]]
38029
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38030
+  (0.0ms) SAVEPOINT active_record_1
38031
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-02-17 13:39:19.648139"], ["updated_at", "2015-02-17 13:39:19.648139"]]
38032
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38033
+  (0.7ms) rollback transaction
38034
+  (0.1ms) begin transaction
38035
+  (0.0ms) SAVEPOINT active_record_1
38036
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:39:19.652967"], ["updated_at", "2015-02-17 13:39:19.652967"]]
38037
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38038
+  (0.0ms) SAVEPOINT active_record_1
38039
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-02-17 13:39:19.654721"], ["updated_at", "2015-02-17 13:39:19.654721"]]
38040
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38041
+  (0.7ms) rollback transaction
38042
+  (0.1ms) begin transaction
38043
+  (0.0ms) SAVEPOINT active_record_1
38044
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:39:19.660166"], ["updated_at", "2015-02-17 13:39:19.660166"]]
38045
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38046
+  (0.1ms) SAVEPOINT active_record_1
38047
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-02-17 13:39:19.662273"], ["updated_at", "2015-02-17 13:39:19.662273"]]
38048
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38049
+  (0.0ms) SAVEPOINT active_record_1
38050
+ 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-02-17 13:39:19.664755"], ["updated_at", "2015-02-17 13:39:19.664755"]]
38051
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38052
+ SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]
38053
+  (0.8ms) rollback transaction
38054
+  (0.1ms) begin transaction
38055
+  (0.1ms) SAVEPOINT active_record_1
38056
+ SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:39:19.671406"], ["updated_at", "2015-02-17 13:39:19.671406"]]
38057
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38058
+  (0.0ms) SAVEPOINT active_record_1
38059
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-02-17 13:39:19.675946"], ["updated_at", "2015-02-17 13:39:19.675946"]]
38060
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38061
+  (0.1ms) SAVEPOINT active_record_1
38062
+ 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-02-17 13:39:19.679854"], ["updated_at", "2015-02-17 13:39:19.679854"]]
38063
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38064
+ Rendered notifications_mailer/notify_new_message.html.erb (0.1ms)
38065
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
38066
+
38067
+ NotificationsMailer#send_mail_by: processed outbound mail in 2.4ms
38068
+
38069
+ Sent mail to user16@sleede.com (1.5ms)
38070
+ Date: Tue, 17 Feb 2015 14:39:19 +0100
38071
+ From: contact@sleede.com
38072
+ To: user16@sleede.com
38073
+ Message-ID: <54e34487a7642_7c0c3ff335465bf0598ee@pc12.home.mail>
38074
+ Subject: subject notify new message
38075
+ Mime-Version: 1.0
38076
+ Content-Type: text/html;
38077
+ charset=UTF-8
38078
+ Content-Transfer-Encoding: 7bit
38079
+
38080
+ <p>user16</p>
38081
+ <p>message body</p>
38082
+
38083
+  (0.6ms) rollback transaction
38084
+  (0.1ms) begin transaction
38085
+  (0.0ms) SAVEPOINT active_record_1
38086
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:39:19.689610"], ["updated_at", "2015-02-17 13:39:19.689610"]]
38087
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38088
+  (0.1ms) SAVEPOINT active_record_1
38089
+ SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-02-17 13:39:19.692274"], ["updated_at", "2015-02-17 13:39:19.692274"]]
38090
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38091
+  (0.1ms) SAVEPOINT active_record_1
38092
+ 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-02-17 13:39:19.699226"], ["updated_at", "2015-02-17 13:39:19.699226"]]
38093
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38094
+ [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: c4f2ae27-d861-42e3-8937-17c91cef7419) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Notification/1
38095
+ [ActiveJob] Notification Load (0.3ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]
38096
+ [ActiveJob] [ActionMailer::DeliveryJob] [c4f2ae27-d861-42e3-8937-17c91cef7419] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Notification/1
38097
+ [ActiveJob] [ActionMailer::DeliveryJob] [c4f2ae27-d861-42e3-8937-17c91cef7419] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
38098
+ [ActiveJob] [ActionMailer::DeliveryJob] [c4f2ae27-d861-42e3-8937-17c91cef7419] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
38099
+ [ActiveJob] [ActionMailer::DeliveryJob] [c4f2ae27-d861-42e3-8937-17c91cef7419] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms)
38100
+ [ActiveJob] [ActionMailer::DeliveryJob] [c4f2ae27-d861-42e3-8937-17c91cef7419] SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
38101
+ [ActiveJob] [ActionMailer::DeliveryJob] [c4f2ae27-d861-42e3-8937-17c91cef7419]
38102
+ NotificationsMailer#send_mail_by: processed outbound mail in 9.2ms
38103
+ [ActiveJob] [ActionMailer::DeliveryJob] [c4f2ae27-d861-42e3-8937-17c91cef7419]
38104
+ Sent mail to user17@sleede.com (1.8ms)
38105
+ [ActiveJob] [ActionMailer::DeliveryJob] [c4f2ae27-d861-42e3-8937-17c91cef7419] Date: Tue, 17 Feb 2015 14:39:19 +0100
38106
+ From: contact@sleede.com
38107
+ To: user17@sleede.com
38108
+ Message-ID: <54e34487b96e9_7c0c3ff335465bf0599c0@pc12.home.mail>
38109
+ Subject: subject notify new message
38110
+ Mime-Version: 1.0
38111
+ Content-Type: text/html;
38112
+ charset=UTF-8
38113
+ Content-Transfer-Encoding: 7bit
38114
+
38115
+ <p>user17</p>
38116
+ <p>message body</p>
38117
+
38118
+ [ActiveJob] [ActionMailer::DeliveryJob] [c4f2ae27-d861-42e3-8937-17c91cef7419] Performed ActionMailer::DeliveryJob from Inline(mailers) in 11.75ms
38119
+  (0.7ms) rollback transaction
38120
+  (0.1ms) begin transaction
38121
+  (0.1ms) SAVEPOINT active_record_1
38122
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:39:19.764502"], ["updated_at", "2015-02-17 13:39:19.764502"]]
38123
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38124
+  (0.0ms) SAVEPOINT active_record_1
38125
+ SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-02-17 13:39:19.766625"], ["updated_at", "2015-02-17 13:39:19.766625"]]
38126
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38127
+  (0.7ms) rollback transaction
38128
+  (0.1ms) begin transaction
38129
+  (0.1ms) SAVEPOINT active_record_1
38130
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:39:19.774954"], ["updated_at", "2015-02-17 13:39:19.774954"]]
38131
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38132
+  (0.1ms) SAVEPOINT active_record_1
38133
+ SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-02-17 13:39:19.777623"], ["updated_at", "2015-02-17 13:39:19.777623"]]
38134
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38135
+  (0.7ms) rollback transaction
38136
+  (0.1ms) begin transaction
38137
+  (0.1ms) SAVEPOINT active_record_1
38138
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:39:19.784175"], ["updated_at", "2015-02-17 13:39:19.784175"]]
38139
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38140
+  (0.0ms) SAVEPOINT active_record_1
38141
+ SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-02-17 13:39:19.786022"], ["updated_at", "2015-02-17 13:39:19.786022"]]
38142
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38143
+  (0.6ms) rollback transaction
38144
+  (0.1ms) begin transaction
38145
+  (0.1ms) SAVEPOINT active_record_1
38146
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:39:19.791753"], ["updated_at", "2015-02-17 13:39:19.791753"]]
38147
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38148
+  (0.0ms) SAVEPOINT active_record_1
38149
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-02-17 13:39:19.793951"], ["updated_at", "2015-02-17 13:39:19.793951"]]
38150
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38151
+  (0.1ms) SAVEPOINT active_record_1
38152
+ 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-02-17 13:39:19.797105"], ["updated_at", "2015-02-17 13:39:19.797105"]]
38153
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38154
+  (0.1ms) SAVEPOINT active_record_1
38155
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38156
+ Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
38157
+  (1.7ms) rollback transaction
38158
+  (0.1ms) begin transaction
38159
+  (0.0ms) rollback transaction
38160
+  (0.1ms) begin transaction
38161
+  (0.0ms) rollback transaction
38162
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
38163
+  (10.7ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
38164
+  (4.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)
38165
+  (3.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) 
38166
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
38167
+  (0.1ms) select sqlite_version(*)
38168
+  (2.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
38169
+  (0.2ms) SELECT version FROM "schema_migrations"
38170
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
38171
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
38172
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
38173
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
38174
+  (0.1ms) begin transaction
38175
+  (0.0ms) SAVEPOINT active_record_1
38176
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-02-17 13:40:25.440695"], ["updated_at", "2015-02-17 13:40:25.440695"]]
38177
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38178
+  (0.1ms) SAVEPOINT active_record_1
38179
+ SQL (1.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:40:25.455720"], ["updated_at", "2015-02-17 13:40:25.455720"]]
38180
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38181
+  (0.0ms) SAVEPOINT active_record_1
38182
+ 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-02-17 13:40:25.459104"], ["updated_at", "2015-02-17 13:40:25.459104"]]
38183
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38184
+ Processing by API::NotificationsController#index as JSON
38185
+ Rendered api/notifications/index.json.jbuilder (0.3ms)
38186
+ Completed 200 OK in 25ms (Views: 11.1ms | ActiveRecord: 0.0ms)
38187
+  (0.7ms) rollback transaction
38188
+  (0.1ms) begin transaction
38189
+  (0.0ms) SAVEPOINT active_record_1
38190
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-02-17 13:40:25.508171"], ["updated_at", "2015-02-17 13:40:25.508171"]]
38191
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38192
+  (0.0ms) SAVEPOINT active_record_1
38193
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:40:25.510246"], ["updated_at", "2015-02-17 13:40:25.510246"]]
38194
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38195
+  (0.0ms) SAVEPOINT active_record_1
38196
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:40:25.512057"], ["updated_at", "2015-02-17 13:40:25.512057"]]
38197
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38198
+ Processing by API::NotificationsController#index as JSON
38199
+ Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
38200
+ Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
38201
+ Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms)
38202
+ Rendered api/notifications/index.json.jbuilder (14.3ms)
38203
+ Completed 200 OK in 16ms (Views: 14.7ms | ActiveRecord: 0.3ms)
38204
+  (0.7ms) rollback transaction
38205
+  (0.1ms) begin transaction
38206
+  (0.1ms) SAVEPOINT active_record_1
38207
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-02-17 13:40:25.538131"], ["updated_at", "2015-02-17 13:40:25.538131"]]
38208
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38209
+  (0.1ms) SAVEPOINT active_record_1
38210
+ SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:40:25.540679"], ["updated_at", "2015-02-17 13:40:25.540679"]]
38211
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38212
+  (0.0ms) SAVEPOINT active_record_1
38213
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:40:25.543589"], ["updated_at", "2015-02-17 13:40:25.543589"]]
38214
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38215
+ Processing by API::NotificationsController#show as JSON
38216
+ Parameters: {"id"=>"1"}
38217
+ 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]]
38218
+ Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
38219
+ Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms)
38220
+ Rendered api/notifications/show.json.jbuilder (3.2ms)
38221
+ Completed 200 OK in 11ms (Views: 4.8ms | ActiveRecord: 0.3ms)
38222
+  (0.8ms) rollback transaction
38223
+  (0.1ms) begin transaction
38224
+  (0.0ms) SAVEPOINT active_record_1
38225
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-02-17 13:40:25.564229"], ["updated_at", "2015-02-17 13:40:25.564229"]]
38226
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38227
+  (0.0ms) SAVEPOINT active_record_1
38228
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:40:25.566448"], ["updated_at", "2015-02-17 13:40:25.566448"]]
38229
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38230
+  (0.0ms) SAVEPOINT active_record_1
38231
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:40:25.568350"], ["updated_at", "2015-02-17 13:40:25.568350"]]
38232
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38233
+ Processing by API::NotificationsController#update as JSON
38234
+ Parameters: {"id"=>"1"}
38235
+ 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]]
38236
+ SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]
38237
+ Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
38238
+ Rendered api/notifications/_notify_new_message.json.jbuilder (0.0ms)
38239
+ Rendered api/notifications/show.json.jbuilder (1.3ms)
38240
+ Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.2ms)
38241
+  (0.9ms) rollback transaction
38242
+  (0.1ms) begin transaction
38243
+  (0.1ms) SAVEPOINT active_record_1
38244
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-02-17 13:40:25.581106"], ["updated_at", "2015-02-17 13:40:25.581106"]]
38245
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38246
+  (0.1ms) SAVEPOINT active_record_1
38247
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:40:25.583366"], ["updated_at", "2015-02-17 13:40:25.583366"]]
38248
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38249
+  (0.1ms) SAVEPOINT active_record_1
38250
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:40:25.585406"], ["updated_at", "2015-02-17 13:40:25.585406"]]
38251
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38252
+ Processing by API::NotificationsController#update_all as JSON
38253
+ Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = 'f' ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"]]
38254
+ SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]
38255
+ Completed 204 No Content in 3ms (ActiveRecord: 0.2ms)
38256
+ Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]
38257
+  (0.7ms) rollback transaction
38258
+  (0.2ms) begin transaction
38259
+  (0.1ms) SAVEPOINT active_record_1
38260
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-02-17 13:40:25.770949"], ["updated_at", "2015-02-17 13:40:25.770949"]]
38261
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38262
+  (0.1ms) SAVEPOINT active_record_1
38263
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:40:25.772938"], ["updated_at", "2015-02-17 13:40:25.772938"]]
38264
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38265
+  (0.0ms) SAVEPOINT active_record_1
38266
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:40:25.774625"], ["updated_at", "2015-02-17 13:40:25.774625"]]
38267
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38268
+  (0.6ms) rollback transaction
38269
+  (0.0ms) begin transaction
38270
+  (0.0ms) SAVEPOINT active_record_1
38271
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-02-17 13:40:25.780408"], ["updated_at", "2015-02-17 13:40:25.780408"]]
38272
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38273
+  (0.0ms) SAVEPOINT active_record_1
38274
+ SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:40:25.782268"], ["updated_at", "2015-02-17 13:40:25.782268"]]
38275
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38276
+  (0.0ms) SAVEPOINT active_record_1
38277
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:40:25.784448"], ["updated_at", "2015-02-17 13:40:25.784448"]]
38278
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38279
+ Rendered notifications_mailer/notify_new_message.html.erb (1.6ms)
38280
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
38281
+
38282
+ NotificationsMailer#send_mail_by: processed outbound mail in 15.8ms
38283
+
38284
+ Sent mail to user7@sleede.com (7.3ms)
38285
+ Date: Tue, 17 Feb 2015 14:40:25 +0100
38286
+ From: contact@sleede.com
38287
+ To: user7@sleede.com
38288
+ Message-ID: <54e344c9c5064_7c433fc44d465be455426@pc12.home.mail>
38289
+ Subject: subject notify new message
38290
+ Mime-Version: 1.0
38291
+ Content-Type: text/html;
38292
+ charset=UTF-8
38293
+ Content-Transfer-Encoding: 7bit
38294
+
38295
+ <p>user7</p>
38296
+ <p>message body</p>
38297
+
38298
+  (0.7ms) rollback transaction
38299
+  (0.1ms) begin transaction
38300
+  (0.1ms) SAVEPOINT active_record_1
38301
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-02-17 13:40:25.814235"], ["updated_at", "2015-02-17 13:40:25.814235"]]
38302
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38303
+  (0.1ms) SAVEPOINT active_record_1
38304
+ SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:40:25.816667"], ["updated_at", "2015-02-17 13:40:25.816667"]]
38305
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38306
+  (0.0ms) SAVEPOINT active_record_1
38307
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:40:25.818818"], ["updated_at", "2015-02-17 13:40:25.818818"]]
38308
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38309
+ Rendered notifications_mailer/notify_new_message.html.erb (0.1ms)
38310
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
38311
+
38312
+ NotificationsMailer#send_mail_by: processed outbound mail in 1.9ms
38313
+
38314
+ Sent mail to user8@sleede.com (1.4ms)
38315
+ Date: Tue, 17 Feb 2015 14:40:25 +0100
38316
+ From: contact@sleede.com
38317
+ To: user8@sleede.com
38318
+ Message-ID: <54e344c9c8e5c_7c433fc44d465be4555f1@pc12.home.mail>
38319
+ Subject: subject notify new message
38320
+ Mime-Version: 1.0
38321
+ Content-Type: text/html;
38322
+ charset=UTF-8
38323
+ Content-Transfer-Encoding: 7bit
38324
+
38325
+ <p>user8</p>
38326
+ <p>message body</p>
38327
+
38328
+  (0.7ms) rollback transaction
38329
+  (0.1ms) begin transaction
38330
+  (0.0ms) SAVEPOINT active_record_1
38331
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-02-17 13:40:25.826451"], ["updated_at", "2015-02-17 13:40:25.826451"]]
38332
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38333
+  (0.0ms) SAVEPOINT active_record_1
38334
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:40:25.828108"], ["updated_at", "2015-02-17 13:40:25.828108"]]
38335
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38336
+  (0.0ms) SAVEPOINT active_record_1
38337
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:40:25.829878"], ["updated_at", "2015-02-17 13:40:25.829878"]]
38338
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38339
+ Rendered notifications_mailer/notify_new_message.html.erb (0.1ms)
38340
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
38341
+
38342
+ NotificationsMailer#send_mail_by: processed outbound mail in 2.0ms
38343
+
38344
+ Sent mail to user9@sleede.com (2.9ms)
38345
+ Date: Tue, 17 Feb 2015 14:40:25 +0100
38346
+ From: contact@sleede.com
38347
+ To: user9@sleede.com
38348
+ Message-ID: <54e344c9cbe2a_7c433fc44d465be455624@pc12.home.mail>
38349
+ Subject: subject notify new message
38350
+ Mime-Version: 1.0
38351
+ Content-Type: text/html;
38352
+ charset=UTF-8
38353
+ Content-Transfer-Encoding: 7bit
38354
+
38355
+ <p>user9</p>
38356
+ <p>message body</p>
38357
+
38358
+  (0.8ms) rollback transaction
38359
+  (0.2ms) begin transaction
38360
+  (0.1ms) SAVEPOINT active_record_1
38361
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-02-17 13:40:25.841171"], ["updated_at", "2015-02-17 13:40:25.841171"]]
38362
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38363
+  (0.0ms) SAVEPOINT active_record_1
38364
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:40:25.843054"], ["updated_at", "2015-02-17 13:40:25.843054"]]
38365
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38366
+  (0.0ms) SAVEPOINT active_record_1
38367
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:40:25.844590"], ["updated_at", "2015-02-17 13:40:25.844590"]]
38368
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38369
+ Rendered notifications_mailer/notify_new_message.html.erb (0.0ms)
38370
+ SQL (0.0ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
38371
+
38372
+ NotificationsMailer#send_mail_by: processed outbound mail in 1.2ms
38373
+
38374
+ Sent mail to user10@sleede.com (1.3ms)
38375
+ Date: Tue, 17 Feb 2015 14:40:25 +0100
38376
+ From: contact@sleede.com
38377
+ To: user10@sleede.com
38378
+ Message-ID: <54e344c9cee4a_7c433fc44d465be4557c7@pc12.home.mail>
38379
+ Subject: subject notify new message
38380
+ Mime-Version: 1.0
38381
+ Content-Type: text/html;
38382
+ charset=UTF-8
38383
+ Content-Transfer-Encoding: 7bit
38384
+
38385
+ <p>user10</p>
38386
+ <p>message body</p>
38387
+
38388
+  (0.7ms) rollback transaction
38389
+  (0.1ms) begin transaction
38390
+  (0.0ms) SAVEPOINT active_record_1
38391
+ SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:40:25.858313"], ["updated_at", "2015-02-17 13:40:25.858313"]]
38392
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38393
+  (0.5ms) SAVEPOINT active_record_1
38394
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-02-17 13:40:25.860844"], ["updated_at", "2015-02-17 13:40:25.860844"]]
38395
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38396
+  (0.0ms) SAVEPOINT active_record_1
38397
+ 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-02-17 13:40:25.863685"], ["updated_at", "2015-02-17 13:40:25.863685"]]
38398
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38399
+  (0.7ms) rollback transaction
38400
+  (0.1ms) begin transaction
38401
+  (0.0ms) SAVEPOINT active_record_1
38402
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:40:25.867475"], ["updated_at", "2015-02-17 13:40:25.867475"]]
38403
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38404
+  (0.0ms) SAVEPOINT active_record_1
38405
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-02-17 13:40:25.869073"], ["updated_at", "2015-02-17 13:40:25.869073"]]
38406
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38407
+  (0.6ms) rollback transaction
38408
+  (0.1ms) begin transaction
38409
+  (0.0ms) SAVEPOINT active_record_1
38410
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:40:25.874640"], ["updated_at", "2015-02-17 13:40:25.874640"]]
38411
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38412
+  (0.0ms) SAVEPOINT active_record_1
38413
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-02-17 13:40:25.876408"], ["updated_at", "2015-02-17 13:40:25.876408"]]
38414
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38415
+  (0.7ms) rollback transaction
38416
+  (0.0ms) begin transaction
38417
+  (0.0ms) SAVEPOINT active_record_1
38418
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:40:25.881223"], ["updated_at", "2015-02-17 13:40:25.881223"]]
38419
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38420
+  (0.1ms) SAVEPOINT active_record_1
38421
+ SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-02-17 13:40:25.883183"], ["updated_at", "2015-02-17 13:40:25.883183"]]
38422
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38423
+  (0.9ms) rollback transaction
38424
+  (0.1ms) begin transaction
38425
+  (0.1ms) SAVEPOINT active_record_1
38426
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:40:25.891708"], ["updated_at", "2015-02-17 13:40:25.891708"]]
38427
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38428
+  (0.0ms) SAVEPOINT active_record_1
38429
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-02-17 13:40:25.893933"], ["updated_at", "2015-02-17 13:40:25.893933"]]
38430
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38431
+  (0.0ms) SAVEPOINT active_record_1
38432
+ 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-02-17 13:40:25.896408"], ["updated_at", "2015-02-17 13:40:25.896408"]]
38433
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38434
+ SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]
38435
+  (0.8ms) rollback transaction
38436
+  (0.1ms) begin transaction
38437
+  (0.0ms) SAVEPOINT active_record_1
38438
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:40:25.900143"], ["updated_at", "2015-02-17 13:40:25.900143"]]
38439
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38440
+  (0.0ms) SAVEPOINT active_record_1
38441
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-02-17 13:40:25.901774"], ["updated_at", "2015-02-17 13:40:25.901774"]]
38442
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38443
+  (0.0ms) SAVEPOINT active_record_1
38444
+ 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-02-17 13:40:25.903891"], ["updated_at", "2015-02-17 13:40:25.903891"]]
38445
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38446
+ Rendered notifications_mailer/notify_new_message.html.erb (0.0ms)
38447
+ SQL (0.0ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
38448
+
38449
+ NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms
38450
+
38451
+ Sent mail to user16@sleede.com (1.4ms)
38452
+ Date: Tue, 17 Feb 2015 14:40:25 +0100
38453
+ From: contact@sleede.com
38454
+ To: user16@sleede.com
38455
+ Message-ID: <54e344c9dd6cd_7c433fc44d465be45587e@pc12.home.mail>
38456
+ Subject: subject notify new message
38457
+ Mime-Version: 1.0
38458
+ Content-Type: text/html;
38459
+ charset=UTF-8
38460
+ Content-Transfer-Encoding: 7bit
38461
+
38462
+ <p>user16</p>
38463
+ <p>message body</p>
38464
+
38465
+  (0.6ms) rollback transaction
38466
+  (0.1ms) begin transaction
38467
+  (0.0ms) SAVEPOINT active_record_1
38468
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:40:25.910973"], ["updated_at", "2015-02-17 13:40:25.910973"]]
38469
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38470
+  (0.1ms) SAVEPOINT active_record_1
38471
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-02-17 13:40:25.912782"], ["updated_at", "2015-02-17 13:40:25.912782"]]
38472
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38473
+  (0.0ms) SAVEPOINT active_record_1
38474
+ 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-02-17 13:40:25.914750"], ["updated_at", "2015-02-17 13:40:25.914750"]]
38475
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38476
+ [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 12adc720-2387-4411-a2a5-7d6b72798b81) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Notification/1
38477
+ [ActiveJob] Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]
38478
+ [ActiveJob] [ActionMailer::DeliveryJob] [12adc720-2387-4411-a2a5-7d6b72798b81] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Notification/1
38479
+ [ActiveJob] [ActionMailer::DeliveryJob] [12adc720-2387-4411-a2a5-7d6b72798b81] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
38480
+ [ActiveJob] [ActionMailer::DeliveryJob] [12adc720-2387-4411-a2a5-7d6b72798b81] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
38481
+ [ActiveJob] [ActionMailer::DeliveryJob] [12adc720-2387-4411-a2a5-7d6b72798b81] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms)
38482
+ [ActiveJob] [ActionMailer::DeliveryJob] [12adc720-2387-4411-a2a5-7d6b72798b81] SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
38483
+ [ActiveJob] [ActionMailer::DeliveryJob] [12adc720-2387-4411-a2a5-7d6b72798b81]
38484
+ NotificationsMailer#send_mail_by: processed outbound mail in 3.6ms
38485
+ [ActiveJob] [ActionMailer::DeliveryJob] [12adc720-2387-4411-a2a5-7d6b72798b81]
38486
+ Sent mail to user17@sleede.com (2.5ms)
38487
+ [ActiveJob] [ActionMailer::DeliveryJob] [12adc720-2387-4411-a2a5-7d6b72798b81] Date: Tue, 17 Feb 2015 14:40:25 +0100
38488
+ From: contact@sleede.com
38489
+ To: user17@sleede.com
38490
+ Message-ID: <54e344c9e6d87_7c433fc44d465be455947@pc12.home.mail>
38491
+ Subject: subject notify new message
38492
+ Mime-Version: 1.0
38493
+ Content-Type: text/html;
38494
+ charset=UTF-8
38495
+ Content-Transfer-Encoding: 7bit
38496
+
38497
+ <p>user17</p>
38498
+ <p>message body</p>
38499
+
38500
+ [ActiveJob] [ActionMailer::DeliveryJob] [12adc720-2387-4411-a2a5-7d6b72798b81] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.63ms
38501
+  (0.8ms) rollback transaction
38502
+  (0.1ms) begin transaction
38503
+  (0.1ms) SAVEPOINT active_record_1
38504
+ SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:40:25.951039"], ["updated_at", "2015-02-17 13:40:25.951039"]]
38505
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38506
+  (0.1ms) SAVEPOINT active_record_1
38507
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-02-17 13:40:25.956508"], ["updated_at", "2015-02-17 13:40:25.956508"]]
38508
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38509
+  (0.7ms) rollback transaction
38510
+  (0.1ms) begin transaction
38511
+  (0.0ms) SAVEPOINT active_record_1
38512
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:40:25.960439"], ["updated_at", "2015-02-17 13:40:25.960439"]]
38513
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38514
+  (0.0ms) SAVEPOINT active_record_1
38515
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-02-17 13:40:25.962038"], ["updated_at", "2015-02-17 13:40:25.962038"]]
38516
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38517
+  (0.6ms) rollback transaction
38518
+  (0.1ms) begin transaction
38519
+  (0.0ms) SAVEPOINT active_record_1
38520
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:40:25.965837"], ["updated_at", "2015-02-17 13:40:25.965837"]]
38521
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38522
+  (0.0ms) SAVEPOINT active_record_1
38523
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-02-17 13:40:25.967549"], ["updated_at", "2015-02-17 13:40:25.967549"]]
38524
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38525
+  (0.6ms) rollback transaction
38526
+  (0.1ms) begin transaction
38527
+  (0.0ms) SAVEPOINT active_record_1
38528
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:40:25.971640"], ["updated_at", "2015-02-17 13:40:25.971640"]]
38529
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38530
+  (0.0ms) SAVEPOINT active_record_1
38531
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-02-17 13:40:25.973549"], ["updated_at", "2015-02-17 13:40:25.973549"]]
38532
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38533
+  (0.1ms) SAVEPOINT active_record_1
38534
+ 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-02-17 13:40:25.980465"], ["updated_at", "2015-02-17 13:40:25.980465"]]
38535
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38536
+ Notification Load (0.0ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
38537
+  (0.7ms) rollback transaction
38538
+  (0.0ms) begin transaction
38539
+  (0.0ms) rollback transaction
38540
+  (0.0ms) begin transaction
38541
+  (0.0ms) rollback transaction
38542
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
38543
+  (8.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
38544
+  (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)
38545
+  (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) 
38546
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
38547
+  (0.1ms) select sqlite_version(*)
38548
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
38549
+  (0.1ms) SELECT version FROM "schema_migrations"
38550
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
38551
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
38552
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
38553
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
38554
+  (0.1ms) begin transaction
38555
+  (0.1ms) SAVEPOINT active_record_1
38556
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-02-17 13:41:03.848534"], ["updated_at", "2015-02-17 13:41:03.848534"]]
38557
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38558
+  (0.1ms) SAVEPOINT active_record_1
38559
+ SQL (1.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:03.862588"], ["updated_at", "2015-02-17 13:41:03.862588"]]
38560
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38561
+  (0.0ms) SAVEPOINT active_record_1
38562
+ 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-02-17 13:41:03.866838"], ["updated_at", "2015-02-17 13:41:03.866838"]]
38563
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38564
+ Processing by API::NotificationsController#index as JSON
38565
+ Rendered api/notifications/index.json.jbuilder (0.4ms)
38566
+ Completed 200 OK in 24ms (Views: 11.6ms | ActiveRecord: 0.0ms)
38567
+  (8.8ms) rollback transaction
38568
+  (0.1ms) begin transaction
38569
+  (0.1ms) SAVEPOINT active_record_1
38570
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-02-17 13:41:03.916353"], ["updated_at", "2015-02-17 13:41:03.916353"]]
38571
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38572
+  (0.1ms) SAVEPOINT active_record_1
38573
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:03.918743"], ["updated_at", "2015-02-17 13:41:03.918743"]]
38574
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38575
+  (0.0ms) SAVEPOINT active_record_1
38576
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:41:03.920665"], ["updated_at", "2015-02-17 13:41:03.920665"]]
38577
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38578
+ Processing by API::NotificationsController#index as JSON
38579
+ Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
38580
+ Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
38581
+ Rendered api/notifications/_notify_new_message.json.jbuilder (0.3ms)
38582
+ Rendered api/notifications/index.json.jbuilder (11.3ms)
38583
+ Completed 200 OK in 13ms (Views: 11.6ms | ActiveRecord: 0.3ms)
38584
+  (1.0ms) rollback transaction
38585
+  (0.1ms) begin transaction
38586
+  (0.1ms) SAVEPOINT active_record_1
38587
+ SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-02-17 13:41:03.946347"], ["updated_at", "2015-02-17 13:41:03.946347"]]
38588
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38589
+  (0.1ms) SAVEPOINT active_record_1
38590
+ SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:03.950513"], ["updated_at", "2015-02-17 13:41:03.950513"]]
38591
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38592
+  (0.0ms) SAVEPOINT active_record_1
38593
+ 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-02-17 13:41:03.953434"], ["updated_at", "2015-02-17 13:41:03.953434"]]
38594
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38595
+ Processing by API::NotificationsController#show as JSON
38596
+ Parameters: {"id"=>"1"}
38597
+ 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]]
38598
+ Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
38599
+ Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms)
38600
+ Rendered api/notifications/show.json.jbuilder (2.2ms)
38601
+ Completed 200 OK in 8ms (Views: 3.4ms | ActiveRecord: 0.2ms)
38602
+  (0.9ms) rollback transaction
38603
+  (0.1ms) begin transaction
38604
+  (0.1ms) SAVEPOINT active_record_1
38605
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-02-17 13:41:03.971746"], ["updated_at", "2015-02-17 13:41:03.971746"]]
38606
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38607
+  (0.1ms) SAVEPOINT active_record_1
38608
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:03.976336"], ["updated_at", "2015-02-17 13:41:03.976336"]]
38609
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38610
+  (0.0ms) SAVEPOINT active_record_1
38611
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:41:03.978490"], ["updated_at", "2015-02-17 13:41:03.978490"]]
38612
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38613
+ Processing by API::NotificationsController#update as JSON
38614
+ Parameters: {"id"=>"1"}
38615
+ 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]]
38616
+ SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]
38617
+ Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
38618
+ Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms)
38619
+ Rendered api/notifications/show.json.jbuilder (1.4ms)
38620
+ Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.2ms)
38621
+  (0.9ms) rollback transaction
38622
+  (0.0ms) begin transaction
38623
+  (0.1ms) SAVEPOINT active_record_1
38624
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-02-17 13:41:03.991068"], ["updated_at", "2015-02-17 13:41:03.991068"]]
38625
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38626
+  (0.1ms) SAVEPOINT active_record_1
38627
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:03.993503"], ["updated_at", "2015-02-17 13:41:03.993503"]]
38628
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38629
+  (0.1ms) SAVEPOINT active_record_1
38630
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:41:03.995425"], ["updated_at", "2015-02-17 13:41:03.995425"]]
38631
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38632
+ Processing by API::NotificationsController#update_all as JSON
38633
+ Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = 'f' ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"]]
38634
+ SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]
38635
+ Completed 204 No Content in 2ms (ActiveRecord: 0.2ms)
38636
+ Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]
38637
+  (1.0ms) rollback transaction
38638
+  (0.1ms) begin transaction
38639
+  (0.2ms) SAVEPOINT active_record_1
38640
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-02-17 13:41:04.160767"], ["updated_at", "2015-02-17 13:41:04.160767"]]
38641
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38642
+  (0.0ms) SAVEPOINT active_record_1
38643
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:04.162749"], ["updated_at", "2015-02-17 13:41:04.162749"]]
38644
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38645
+  (0.0ms) SAVEPOINT active_record_1
38646
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:41:04.164468"], ["updated_at", "2015-02-17 13:41:04.164468"]]
38647
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38648
+  (8.8ms) rollback transaction
38649
+  (0.1ms) begin transaction
38650
+  (0.1ms) SAVEPOINT active_record_1
38651
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-02-17 13:41:04.179162"], ["updated_at", "2015-02-17 13:41:04.179162"]]
38652
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38653
+  (0.0ms) SAVEPOINT active_record_1
38654
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:04.181103"], ["updated_at", "2015-02-17 13:41:04.181103"]]
38655
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38656
+  (0.0ms) SAVEPOINT active_record_1
38657
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:41:04.182916"], ["updated_at", "2015-02-17 13:41:04.182916"]]
38658
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38659
+ Rendered notifications_mailer/notify_new_message.html.erb (1.1ms)
38660
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
38661
+
38662
+ NotificationsMailer#send_mail_by: processed outbound mail in 12.0ms
38663
+
38664
+ Sent mail to user7@sleede.com (6.7ms)
38665
+ Date: Tue, 17 Feb 2015 14:41:04 +0100
38666
+ From: contact@sleede.com
38667
+ To: user7@sleede.com
38668
+ Message-ID: <54e344f030f31_7c9a3fe2f1865bf0105d@pc12.home.mail>
38669
+ Subject: subject notify new message
38670
+ Mime-Version: 1.0
38671
+ Content-Type: text/html;
38672
+ charset=UTF-8
38673
+ Content-Transfer-Encoding: 7bit
38674
+
38675
+ <p>user7</p>
38676
+ <p>message body</p>
38677
+
38678
+  (0.7ms) rollback transaction
38679
+  (0.1ms) begin transaction
38680
+  (0.1ms) SAVEPOINT active_record_1
38681
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-02-17 13:41:04.207478"], ["updated_at", "2015-02-17 13:41:04.207478"]]
38682
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38683
+  (0.0ms) SAVEPOINT active_record_1
38684
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:04.209655"], ["updated_at", "2015-02-17 13:41:04.209655"]]
38685
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38686
+  (0.0ms) SAVEPOINT active_record_1
38687
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:41:04.211451"], ["updated_at", "2015-02-17 13:41:04.211451"]]
38688
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38689
+ Rendered notifications_mailer/notify_new_message.html.erb (0.0ms)
38690
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
38691
+
38692
+ NotificationsMailer#send_mail_by: processed outbound mail in 1.4ms
38693
+
38694
+ Sent mail to user8@sleede.com (3.6ms)
38695
+ Date: Tue, 17 Feb 2015 14:41:04 +0100
38696
+ From: contact@sleede.com
38697
+ To: user8@sleede.com
38698
+ Message-ID: <54e344f03471a_7c9a3fe2f1865bf010645@pc12.home.mail>
38699
+ Subject: subject notify new message
38700
+ Mime-Version: 1.0
38701
+ Content-Type: text/html;
38702
+ charset=UTF-8
38703
+ Content-Transfer-Encoding: 7bit
38704
+
38705
+ <p>user8</p>
38706
+ <p>message body</p>
38707
+
38708
+  (0.8ms) rollback transaction
38709
+  (0.1ms) begin transaction
38710
+  (0.1ms) SAVEPOINT active_record_1
38711
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-02-17 13:41:04.221130"], ["updated_at", "2015-02-17 13:41:04.221130"]]
38712
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38713
+  (0.1ms) SAVEPOINT active_record_1
38714
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:04.223808"], ["updated_at", "2015-02-17 13:41:04.223808"]]
38715
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38716
+  (0.0ms) SAVEPOINT active_record_1
38717
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:41:04.225914"], ["updated_at", "2015-02-17 13:41:04.225914"]]
38718
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38719
+ Rendered notifications_mailer/notify_new_message.html.erb (0.1ms)
38720
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
38721
+
38722
+ NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms
38723
+
38724
+ Sent mail to user9@sleede.com (4.9ms)
38725
+ Date: Tue, 17 Feb 2015 14:41:04 +0100
38726
+ From: contact@sleede.com
38727
+ To: user9@sleede.com
38728
+ Message-ID: <54e344f038d2a_7c9a3fe2f1865bf0107d6@pc12.home.mail>
38729
+ Subject: subject notify new message
38730
+ Mime-Version: 1.0
38731
+ Content-Type: text/html;
38732
+ charset=UTF-8
38733
+ Content-Transfer-Encoding: 7bit
38734
+
38735
+ <p>user9</p>
38736
+ <p>message body</p>
38737
+
38738
+  (0.6ms) rollback transaction
38739
+  (0.1ms) begin transaction
38740
+  (0.3ms) SAVEPOINT active_record_1
38741
+ SQL (0.8ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-02-17 13:41:04.237667"], ["updated_at", "2015-02-17 13:41:04.237667"]]
38742
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38743
+  (0.1ms) SAVEPOINT active_record_1
38744
+ SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:04.241293"], ["updated_at", "2015-02-17 13:41:04.241293"]]
38745
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38746
+  (0.1ms) SAVEPOINT active_record_1
38747
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:41:04.246488"], ["updated_at", "2015-02-17 13:41:04.246488"]]
38748
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38749
+ Rendered notifications_mailer/notify_new_message.html.erb (0.0ms)
38750
+ SQL (0.0ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
38751
+
38752
+ NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms
38753
+
38754
+ Sent mail to user10@sleede.com (1.4ms)
38755
+ Date: Tue, 17 Feb 2015 14:41:04 +0100
38756
+ From: contact@sleede.com
38757
+ To: user10@sleede.com
38758
+ Message-ID: <54e344f03cfd1_7c9a3fe2f1865bf01082d@pc12.home.mail>
38759
+ Subject: subject notify new message
38760
+ Mime-Version: 1.0
38761
+ Content-Type: text/html;
38762
+ charset=UTF-8
38763
+ Content-Transfer-Encoding: 7bit
38764
+
38765
+ <p>user10</p>
38766
+ <p>message body</p>
38767
+
38768
+  (0.6ms) rollback transaction
38769
+  (0.1ms) begin transaction
38770
+  (0.0ms) SAVEPOINT active_record_1
38771
+ SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:04.260736"], ["updated_at", "2015-02-17 13:41:04.260736"]]
38772
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38773
+  (0.4ms) SAVEPOINT active_record_1
38774
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-02-17 13:41:04.262882"], ["updated_at", "2015-02-17 13:41:04.262882"]]
38775
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38776
+  (0.0ms) SAVEPOINT active_record_1
38777
+ 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-02-17 13:41:04.265373"], ["updated_at", "2015-02-17 13:41:04.265373"]]
38778
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38779
+  (0.6ms) rollback transaction
38780
+  (0.0ms) begin transaction
38781
+  (0.0ms) SAVEPOINT active_record_1
38782
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:04.270359"], ["updated_at", "2015-02-17 13:41:04.270359"]]
38783
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38784
+  (0.0ms) SAVEPOINT active_record_1
38785
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-02-17 13:41:04.271959"], ["updated_at", "2015-02-17 13:41:04.271959"]]
38786
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38787
+  (0.7ms) rollback transaction
38788
+  (0.1ms) begin transaction
38789
+  (0.1ms) SAVEPOINT active_record_1
38790
+ SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:04.278100"], ["updated_at", "2015-02-17 13:41:04.278100"]]
38791
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38792
+  (0.0ms) SAVEPOINT active_record_1
38793
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-02-17 13:41:04.280888"], ["updated_at", "2015-02-17 13:41:04.280888"]]
38794
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38795
+  (0.6ms) rollback transaction
38796
+  (0.1ms) begin transaction
38797
+  (0.0ms) SAVEPOINT active_record_1
38798
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:04.286086"], ["updated_at", "2015-02-17 13:41:04.286086"]]
38799
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38800
+  (0.0ms) SAVEPOINT active_record_1
38801
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-02-17 13:41:04.287721"], ["updated_at", "2015-02-17 13:41:04.287721"]]
38802
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38803
+  (0.8ms) rollback transaction
38804
+  (0.1ms) begin transaction
38805
+  (0.0ms) SAVEPOINT active_record_1
38806
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:04.292289"], ["updated_at", "2015-02-17 13:41:04.292289"]]
38807
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38808
+  (0.0ms) SAVEPOINT active_record_1
38809
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-02-17 13:41:04.294805"], ["updated_at", "2015-02-17 13:41:04.294805"]]
38810
+  (0.2ms) RELEASE SAVEPOINT active_record_1
38811
+  (0.1ms) SAVEPOINT active_record_1
38812
+ 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-02-17 13:41:04.298320"], ["updated_at", "2015-02-17 13:41:04.298320"]]
38813
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38814
+ SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]
38815
+  (1.0ms) rollback transaction
38816
+  (0.5ms) begin transaction
38817
+  (0.1ms) SAVEPOINT active_record_1
38818
+ SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:04.306849"], ["updated_at", "2015-02-17 13:41:04.306849"]]
38819
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38820
+  (0.0ms) SAVEPOINT active_record_1
38821
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-02-17 13:41:04.309855"], ["updated_at", "2015-02-17 13:41:04.309855"]]
38822
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38823
+  (0.0ms) SAVEPOINT active_record_1
38824
+ 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-02-17 13:41:04.311978"], ["updated_at", "2015-02-17 13:41:04.311978"]]
38825
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38826
+ Rendered notifications_mailer/notify_new_message.html.erb (0.1ms)
38827
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
38828
+
38829
+ NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms
38830
+
38831
+ Sent mail to user16@sleede.com (1.8ms)
38832
+ Date: Tue, 17 Feb 2015 14:41:04 +0100
38833
+ From: contact@sleede.com
38834
+ To: user16@sleede.com
38835
+ Message-ID: <54e344f04d113_7c9a3fe2f1865bf01099e@pc12.home.mail>
38836
+ Subject: subject notify new message
38837
+ Mime-Version: 1.0
38838
+ Content-Type: text/html;
38839
+ charset=UTF-8
38840
+ Content-Transfer-Encoding: 7bit
38841
+
38842
+ <p>user16</p>
38843
+ <p>message body</p>
38844
+
38845
+  (0.7ms) rollback transaction
38846
+  (0.1ms) begin transaction
38847
+  (0.1ms) SAVEPOINT active_record_1
38848
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:04.320087"], ["updated_at", "2015-02-17 13:41:04.320087"]]
38849
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38850
+  (0.1ms) SAVEPOINT active_record_1
38851
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-02-17 13:41:04.322218"], ["updated_at", "2015-02-17 13:41:04.322218"]]
38852
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38853
+  (0.0ms) SAVEPOINT active_record_1
38854
+ 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-02-17 13:41:04.324309"], ["updated_at", "2015-02-17 13:41:04.324309"]]
38855
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38856
+ [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: a2aed8ec-6c25-49e5-ab38-4c194d8debb0) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Notification/1
38857
+ [ActiveJob] Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]
38858
+ [ActiveJob] [ActionMailer::DeliveryJob] [a2aed8ec-6c25-49e5-ab38-4c194d8debb0] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Notification/1
38859
+ [ActiveJob] [ActionMailer::DeliveryJob] [a2aed8ec-6c25-49e5-ab38-4c194d8debb0] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
38860
+ [ActiveJob] [ActionMailer::DeliveryJob] [a2aed8ec-6c25-49e5-ab38-4c194d8debb0] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
38861
+ [ActiveJob] [ActionMailer::DeliveryJob] [a2aed8ec-6c25-49e5-ab38-4c194d8debb0] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms)
38862
+ [ActiveJob] [ActionMailer::DeliveryJob] [a2aed8ec-6c25-49e5-ab38-4c194d8debb0] SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
38863
+ [ActiveJob] [ActionMailer::DeliveryJob] [a2aed8ec-6c25-49e5-ab38-4c194d8debb0]
38864
+ NotificationsMailer#send_mail_by: processed outbound mail in 4.9ms
38865
+ [ActiveJob] [ActionMailer::DeliveryJob] [a2aed8ec-6c25-49e5-ab38-4c194d8debb0]
38866
+ Sent mail to user17@sleede.com (1.9ms)
38867
+ [ActiveJob] [ActionMailer::DeliveryJob] [a2aed8ec-6c25-49e5-ab38-4c194d8debb0] Date: Tue, 17 Feb 2015 14:41:04 +0100
38868
+ From: contact@sleede.com
38869
+ To: user17@sleede.com
38870
+ Message-ID: <54e344f054996_7c9a3fe2f1865bf011029@pc12.home.mail>
38871
+ Subject: subject notify new message
38872
+ Mime-Version: 1.0
38873
+ Content-Type: text/html;
38874
+ charset=UTF-8
38875
+ Content-Transfer-Encoding: 7bit
38876
+
38877
+ <p>user17</p>
38878
+ <p>message body</p>
38879
+
38880
+ [ActiveJob] [ActionMailer::DeliveryJob] [a2aed8ec-6c25-49e5-ab38-4c194d8debb0] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.16ms
38881
+  (0.7ms) rollback transaction
38882
+  (0.1ms) begin transaction
38883
+  (0.0ms) SAVEPOINT active_record_1
38884
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:04.350075"], ["updated_at", "2015-02-17 13:41:04.350075"]]
38885
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38886
+  (0.1ms) SAVEPOINT active_record_1
38887
+ SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-02-17 13:41:04.353565"], ["updated_at", "2015-02-17 13:41:04.353565"]]
38888
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38889
+  (0.8ms) rollback transaction
38890
+  (0.1ms) begin transaction
38891
+  (0.1ms) SAVEPOINT active_record_1
38892
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:04.360954"], ["updated_at", "2015-02-17 13:41:04.360954"]]
38893
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38894
+  (0.0ms) SAVEPOINT active_record_1
38895
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-02-17 13:41:04.363111"], ["updated_at", "2015-02-17 13:41:04.363111"]]
38896
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38897
+  (0.5ms) rollback transaction
38898
+  (0.0ms) begin transaction
38899
+  (0.0ms) SAVEPOINT active_record_1
38900
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:04.366446"], ["updated_at", "2015-02-17 13:41:04.366446"]]
38901
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38902
+  (0.0ms) SAVEPOINT active_record_1
38903
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-02-17 13:41:04.368595"], ["updated_at", "2015-02-17 13:41:04.368595"]]
38904
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38905
+  (0.6ms) rollback transaction
38906
+  (0.1ms) begin transaction
38907
+  (0.0ms) SAVEPOINT active_record_1
38908
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:04.372281"], ["updated_at", "2015-02-17 13:41:04.372281"]]
38909
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38910
+  (0.0ms) SAVEPOINT active_record_1
38911
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-02-17 13:41:04.374258"], ["updated_at", "2015-02-17 13:41:04.374258"]]
38912
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38913
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
38914
+  (0.1ms) SAVEPOINT active_record_1
38915
+ 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-02-17 13:41:04.381248"], ["updated_at", "2015-02-17 13:41:04.381248"]]
38916
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38917
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
38918
+ Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
38919
+ Notification Load (0.0ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
38920
+  (0.7ms) rollback transaction
38921
+  (0.1ms) begin transaction
38922
+  (0.0ms) rollback transaction
38923
+  (0.0ms) begin transaction
38924
+  (0.0ms) rollback transaction
38925
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
38926
+  (8.5ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
38927
+  (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)
38928
+  (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) 
38929
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
38930
+  (0.1ms) select sqlite_version(*)
38931
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
38932
+  (0.1ms) SELECT version FROM "schema_migrations"
38933
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
38934
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
38935
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
38936
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
38937
+  (0.1ms) begin transaction
38938
+  (0.1ms) SAVEPOINT active_record_1
38939
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-02-17 13:41:33.622185"], ["updated_at", "2015-02-17 13:41:33.622185"]]
38940
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38941
+  (0.1ms) SAVEPOINT active_record_1
38942
+ SQL (1.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:33.637248"], ["updated_at", "2015-02-17 13:41:33.637248"]]
38943
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38944
+  (0.0ms) SAVEPOINT active_record_1
38945
+ 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-02-17 13:41:33.640750"], ["updated_at", "2015-02-17 13:41:33.640750"]]
38946
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38947
+ Processing by API::NotificationsController#index as JSON
38948
+ Rendered api/notifications/index.json.jbuilder (0.3ms)
38949
+ Completed 200 OK in 23ms (Views: 8.6ms | ActiveRecord: 0.0ms)
38950
+  (0.6ms) rollback transaction
38951
+  (0.1ms) begin transaction
38952
+  (0.0ms) SAVEPOINT active_record_1
38953
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-02-17 13:41:33.698515"], ["updated_at", "2015-02-17 13:41:33.698515"]]
38954
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38955
+  (0.0ms) SAVEPOINT active_record_1
38956
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:33.700492"], ["updated_at", "2015-02-17 13:41:33.700492"]]
38957
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38958
+  (0.0ms) SAVEPOINT active_record_1
38959
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:41:33.702063"], ["updated_at", "2015-02-17 13:41:33.702063"]]
38960
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38961
+ Processing by API::NotificationsController#index as JSON
38962
+ Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
38963
+ Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
38964
+ Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms)
38965
+ Rendered api/notifications/index.json.jbuilder (11.8ms)
38966
+ Completed 200 OK in 14ms (Views: 12.0ms | ActiveRecord: 0.2ms)
38967
+  (0.7ms) rollback transaction
38968
+  (0.1ms) begin transaction
38969
+  (0.0ms) SAVEPOINT active_record_1
38970
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-02-17 13:41:33.724710"], ["updated_at", "2015-02-17 13:41:33.724710"]]
38971
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38972
+  (0.0ms) SAVEPOINT active_record_1
38973
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:33.726695"], ["updated_at", "2015-02-17 13:41:33.726695"]]
38974
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38975
+  (0.0ms) SAVEPOINT active_record_1
38976
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:41:33.728263"], ["updated_at", "2015-02-17 13:41:33.728263"]]
38977
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38978
+ Processing by API::NotificationsController#show as JSON
38979
+ Parameters: {"id"=>"1"}
38980
+ 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]]
38981
+ Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
38982
+ Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms)
38983
+ Rendered api/notifications/show.json.jbuilder (2.4ms)
38984
+ Completed 200 OK in 9ms (Views: 3.5ms | ActiveRecord: 0.2ms)
38985
+  (0.7ms) rollback transaction
38986
+  (0.1ms) begin transaction
38987
+  (0.1ms) SAVEPOINT active_record_1
38988
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-02-17 13:41:33.745284"], ["updated_at", "2015-02-17 13:41:33.745284"]]
38989
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38990
+  (0.1ms) SAVEPOINT active_record_1
38991
+ SQL (0.8ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:33.749075"], ["updated_at", "2015-02-17 13:41:33.749075"]]
38992
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38993
+  (0.1ms) SAVEPOINT active_record_1
38994
+ 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-02-17 13:41:33.754546"], ["updated_at", "2015-02-17 13:41:33.754546"]]
38995
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38996
+ Processing by API::NotificationsController#update as JSON
38997
+ Parameters: {"id"=>"1"}
38998
+ 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]]
38999
+ SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]
39000
+ Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
39001
+ Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms)
39002
+ Rendered api/notifications/show.json.jbuilder (1.5ms)
39003
+ Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.2ms)
39004
+  (0.8ms) rollback transaction
39005
+  (0.1ms) begin transaction
39006
+  (0.1ms) SAVEPOINT active_record_1
39007
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-02-17 13:41:33.768272"], ["updated_at", "2015-02-17 13:41:33.768272"]]
39008
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39009
+  (0.0ms) SAVEPOINT active_record_1
39010
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:33.770494"], ["updated_at", "2015-02-17 13:41:33.770494"]]
39011
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39012
+  (0.1ms) SAVEPOINT active_record_1
39013
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:41:33.772329"], ["updated_at", "2015-02-17 13:41:33.772329"]]
39014
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39015
+ Processing by API::NotificationsController#update_all as JSON
39016
+ Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = 'f' ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"]]
39017
+ SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]
39018
+ Completed 204 No Content in 2ms (ActiveRecord: 0.2ms)
39019
+ Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]
39020
+  (0.7ms) rollback transaction
39021
+  (0.1ms) begin transaction
39022
+  (0.1ms) SAVEPOINT active_record_1
39023
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-02-17 13:41:33.967841"], ["updated_at", "2015-02-17 13:41:33.967841"]]
39024
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39025
+  (0.0ms) SAVEPOINT active_record_1
39026
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:33.969714"], ["updated_at", "2015-02-17 13:41:33.969714"]]
39027
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39028
+  (0.0ms) SAVEPOINT active_record_1
39029
+ 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-02-17 13:41:33.971606"], ["updated_at", "2015-02-17 13:41:33.971606"]]
39030
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39031
+  (0.7ms) rollback transaction
39032
+  (0.0ms) begin transaction
39033
+  (0.0ms) SAVEPOINT active_record_1
39034
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-02-17 13:41:33.977580"], ["updated_at", "2015-02-17 13:41:33.977580"]]
39035
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39036
+  (0.0ms) SAVEPOINT active_record_1
39037
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:33.979453"], ["updated_at", "2015-02-17 13:41:33.979453"]]
39038
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39039
+  (0.0ms) SAVEPOINT active_record_1
39040
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:41:33.981643"], ["updated_at", "2015-02-17 13:41:33.981643"]]
39041
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39042
+ Rendered notifications_mailer/notify_new_message.html.erb (1.5ms)
39043
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
39044
+
39045
+ NotificationsMailer#send_mail_by: processed outbound mail in 15.4ms
39046
+
39047
+ Sent mail to user7@sleede.com (7.0ms)
39048
+ Date: Tue, 17 Feb 2015 14:41:34 +0100
39049
+ From: contact@sleede.com
39050
+ To: user7@sleede.com
39051
+ Message-ID: <54e3450ecd2_7de13ffd74c65be098365@pc12.home.mail>
39052
+ Subject: subject notify new message
39053
+ Mime-Version: 1.0
39054
+ Content-Type: text/html;
39055
+ charset=UTF-8
39056
+ Content-Transfer-Encoding: 7bit
39057
+
39058
+ <p>user7</p>
39059
+ <p>message body</p>
39060
+
39061
+  (0.7ms) rollback transaction
39062
+  (0.1ms) begin transaction
39063
+  (0.1ms) SAVEPOINT active_record_1
39064
+ SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-02-17 13:41:34.009652"], ["updated_at", "2015-02-17 13:41:34.009652"]]
39065
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39066
+  (0.1ms) SAVEPOINT active_record_1
39067
+ SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:34.012945"], ["updated_at", "2015-02-17 13:41:34.012945"]]
39068
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39069
+  (0.1ms) SAVEPOINT active_record_1
39070
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:41:34.015658"], ["updated_at", "2015-02-17 13:41:34.015658"]]
39071
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39072
+ Rendered notifications_mailer/notify_new_message.html.erb (0.1ms)
39073
+ SQL (0.2ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
39074
+
39075
+ NotificationsMailer#send_mail_by: processed outbound mail in 2.1ms
39076
+
39077
+ Sent mail to user8@sleede.com (1.4ms)
39078
+ Date: Tue, 17 Feb 2015 14:41:34 +0100
39079
+ From: contact@sleede.com
39080
+ To: user8@sleede.com
39081
+ Message-ID: <54e3450e4fc1_7de13ffd74c65be09842a@pc12.home.mail>
39082
+ Subject: subject notify new message
39083
+ Mime-Version: 1.0
39084
+ Content-Type: text/html;
39085
+ charset=UTF-8
39086
+ Content-Transfer-Encoding: 7bit
39087
+
39088
+ <p>user8</p>
39089
+ <p>message body</p>
39090
+
39091
+  (0.7ms) rollback transaction
39092
+  (0.1ms) begin transaction
39093
+  (0.1ms) SAVEPOINT active_record_1
39094
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-02-17 13:41:34.024011"], ["updated_at", "2015-02-17 13:41:34.024011"]]
39095
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39096
+  (0.1ms) SAVEPOINT active_record_1
39097
+ SQL (1.8ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:34.026393"], ["updated_at", "2015-02-17 13:41:34.026393"]]
39098
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39099
+  (0.1ms) SAVEPOINT active_record_1
39100
+ 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-02-17 13:41:34.032359"], ["updated_at", "2015-02-17 13:41:34.032359"]]
39101
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39102
+ Rendered notifications_mailer/notify_new_message.html.erb (0.1ms)
39103
+ SQL (0.7ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
39104
+
39105
+ NotificationsMailer#send_mail_by: processed outbound mail in 4.4ms
39106
+
39107
+ Sent mail to user9@sleede.com (3.0ms)
39108
+ Date: Tue, 17 Feb 2015 14:41:34 +0100
39109
+ From: contact@sleede.com
39110
+ To: user9@sleede.com
39111
+ Message-ID: <54e3450eeb41_7de13ffd74c65be09851e@pc12.home.mail>
39112
+ Subject: subject notify new message
39113
+ Mime-Version: 1.0
39114
+ Content-Type: text/html;
39115
+ charset=UTF-8
39116
+ Content-Transfer-Encoding: 7bit
39117
+
39118
+ <p>user9</p>
39119
+ <p>message body</p>
39120
+
39121
+  (0.6ms) rollback transaction
39122
+  (0.1ms) begin transaction
39123
+  (0.0ms) SAVEPOINT active_record_1
39124
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-02-17 13:41:34.064445"], ["updated_at", "2015-02-17 13:41:34.064445"]]
39125
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39126
+  (0.1ms) SAVEPOINT active_record_1
39127
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:34.066192"], ["updated_at", "2015-02-17 13:41:34.066192"]]
39128
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39129
+  (0.0ms) SAVEPOINT active_record_1
39130
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:41:34.067737"], ["updated_at", "2015-02-17 13:41:34.067737"]]
39131
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39132
+ Rendered notifications_mailer/notify_new_message.html.erb (0.0ms)
39133
+ SQL (0.0ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
39134
+
39135
+ NotificationsMailer#send_mail_by: processed outbound mail in 1.2ms
39136
+
39137
+ Sent mail to user10@sleede.com (1.5ms)
39138
+ Date: Tue, 17 Feb 2015 14:41:34 +0100
39139
+ From: contact@sleede.com
39140
+ To: user10@sleede.com
39141
+ Message-ID: <54e3450e113ee_7de13ffd74c65be098695@pc12.home.mail>
39142
+ Subject: subject notify new message
39143
+ Mime-Version: 1.0
39144
+ Content-Type: text/html;
39145
+ charset=UTF-8
39146
+ Content-Transfer-Encoding: 7bit
39147
+
39148
+ <p>user10</p>
39149
+ <p>message body</p>
39150
+
39151
+  (0.9ms) rollback transaction
39152
+  (0.1ms) begin transaction
39153
+  (0.0ms) SAVEPOINT active_record_1
39154
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:34.081430"], ["updated_at", "2015-02-17 13:41:34.081430"]]
39155
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39156
+  (0.4ms) SAVEPOINT active_record_1
39157
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-02-17 13:41:34.083534"], ["updated_at", "2015-02-17 13:41:34.083534"]]
39158
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39159
+  (0.0ms) SAVEPOINT active_record_1
39160
+ 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-02-17 13:41:34.086374"], ["updated_at", "2015-02-17 13:41:34.086374"]]
39161
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39162
+  (0.9ms) rollback transaction
39163
+  (0.1ms) begin transaction
39164
+  (0.1ms) SAVEPOINT active_record_1
39165
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:34.090611"], ["updated_at", "2015-02-17 13:41:34.090611"]]
39166
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39167
+  (0.0ms) SAVEPOINT active_record_1
39168
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-02-17 13:41:34.092430"], ["updated_at", "2015-02-17 13:41:34.092430"]]
39169
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39170
+  (0.8ms) rollback transaction
39171
+  (0.1ms) begin transaction
39172
+  (0.0ms) SAVEPOINT active_record_1
39173
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:34.097624"], ["updated_at", "2015-02-17 13:41:34.097624"]]
39174
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39175
+  (0.0ms) SAVEPOINT active_record_1
39176
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-02-17 13:41:34.099390"], ["updated_at", "2015-02-17 13:41:34.099390"]]
39177
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39178
+  (0.8ms) rollback transaction
39179
+  (0.1ms) begin transaction
39180
+  (0.1ms) SAVEPOINT active_record_1
39181
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:34.104340"], ["updated_at", "2015-02-17 13:41:34.104340"]]
39182
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39183
+  (0.0ms) SAVEPOINT active_record_1
39184
+ SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-02-17 13:41:34.106068"], ["updated_at", "2015-02-17 13:41:34.106068"]]
39185
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39186
+  (0.8ms) rollback transaction
39187
+  (0.1ms) begin transaction
39188
+  (0.1ms) SAVEPOINT active_record_1
39189
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:34.113035"], ["updated_at", "2015-02-17 13:41:34.113035"]]
39190
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39191
+  (0.1ms) SAVEPOINT active_record_1
39192
+ SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-02-17 13:41:34.116472"], ["updated_at", "2015-02-17 13:41:34.116472"]]
39193
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39194
+  (0.0ms) SAVEPOINT active_record_1
39195
+ 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-02-17 13:41:34.119729"], ["updated_at", "2015-02-17 13:41:34.119729"]]
39196
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39197
+ SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]
39198
+  (0.6ms) rollback transaction
39199
+  (0.1ms) begin transaction
39200
+  (0.0ms) SAVEPOINT active_record_1
39201
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:34.122874"], ["updated_at", "2015-02-17 13:41:34.122874"]]
39202
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39203
+  (0.1ms) SAVEPOINT active_record_1
39204
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-02-17 13:41:34.124485"], ["updated_at", "2015-02-17 13:41:34.124485"]]
39205
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39206
+  (0.0ms) SAVEPOINT active_record_1
39207
+ 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-02-17 13:41:34.126512"], ["updated_at", "2015-02-17 13:41:34.126512"]]
39208
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39209
+ Rendered notifications_mailer/notify_new_message.html.erb (0.0ms)
39210
+ SQL (0.0ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
39211
+
39212
+ NotificationsMailer#send_mail_by: processed outbound mail in 1.2ms
39213
+
39214
+ Sent mail to user16@sleede.com (1.9ms)
39215
+ Date: Tue, 17 Feb 2015 14:41:34 +0100
39216
+ From: contact@sleede.com
39217
+ To: user16@sleede.com
39218
+ Message-ID: <54e3450e1fb95_7de13ffd74c65be0987ec@pc12.home.mail>
39219
+ Subject: subject notify new message
39220
+ Mime-Version: 1.0
39221
+ Content-Type: text/html;
39222
+ charset=UTF-8
39223
+ Content-Transfer-Encoding: 7bit
39224
+
39225
+ <p>user16</p>
39226
+ <p>message body</p>
39227
+
39228
+  (0.9ms) rollback transaction
39229
+  (0.1ms) begin transaction
39230
+  (0.0ms) SAVEPOINT active_record_1
39231
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:34.134363"], ["updated_at", "2015-02-17 13:41:34.134363"]]
39232
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39233
+  (0.0ms) SAVEPOINT active_record_1
39234
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-02-17 13:41:34.135998"], ["updated_at", "2015-02-17 13:41:34.135998"]]
39235
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39236
+  (0.0ms) SAVEPOINT active_record_1
39237
+ 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-02-17 13:41:34.138229"], ["updated_at", "2015-02-17 13:41:34.138229"]]
39238
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39239
+ [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 507f52ae-8d8f-4013-b62d-ab107171886b) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Notification/1
39240
+ [ActiveJob] Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]
39241
+ [ActiveJob] [ActionMailer::DeliveryJob] [507f52ae-8d8f-4013-b62d-ab107171886b] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Notification/1
39242
+ [ActiveJob] [ActionMailer::DeliveryJob] [507f52ae-8d8f-4013-b62d-ab107171886b] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
39243
+ [ActiveJob] [ActionMailer::DeliveryJob] [507f52ae-8d8f-4013-b62d-ab107171886b] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
39244
+ [ActiveJob] [ActionMailer::DeliveryJob] [507f52ae-8d8f-4013-b62d-ab107171886b] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms)
39245
+ [ActiveJob] [ActionMailer::DeliveryJob] [507f52ae-8d8f-4013-b62d-ab107171886b] SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
39246
+ [ActiveJob] [ActionMailer::DeliveryJob] [507f52ae-8d8f-4013-b62d-ab107171886b]
39247
+ NotificationsMailer#send_mail_by: processed outbound mail in 6.1ms
39248
+ [ActiveJob] [ActionMailer::DeliveryJob] [507f52ae-8d8f-4013-b62d-ab107171886b]
39249
+ Sent mail to user17@sleede.com (3.7ms)
39250
+ [ActiveJob] [ActionMailer::DeliveryJob] [507f52ae-8d8f-4013-b62d-ab107171886b] Date: Tue, 17 Feb 2015 14:41:34 +0100
39251
+ From: contact@sleede.com
39252
+ To: user17@sleede.com
39253
+ Message-ID: <54e3450e2930c_7de13ffd74c65be0988b4@pc12.home.mail>
39254
+ Subject: subject notify new message
39255
+ Mime-Version: 1.0
39256
+ Content-Type: text/html;
39257
+ charset=UTF-8
39258
+ Content-Transfer-Encoding: 7bit
39259
+
39260
+ <p>user17</p>
39261
+ <p>message body</p>
39262
+
39263
+ [ActiveJob] [ActionMailer::DeliveryJob] [507f52ae-8d8f-4013-b62d-ab107171886b] Performed ActionMailer::DeliveryJob from Inline(mailers) in 10.22ms
39264
+  (0.6ms) rollback transaction
39265
+  (0.1ms) begin transaction
39266
+  (0.0ms) SAVEPOINT active_record_1
39267
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:34.173459"], ["updated_at", "2015-02-17 13:41:34.173459"]]
39268
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39269
+  (0.0ms) SAVEPOINT active_record_1
39270
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-02-17 13:41:34.176630"], ["updated_at", "2015-02-17 13:41:34.176630"]]
39271
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39272
+  (0.6ms) rollback transaction
39273
+  (0.0ms) begin transaction
39274
+  (0.0ms) SAVEPOINT active_record_1
39275
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:34.180161"], ["updated_at", "2015-02-17 13:41:34.180161"]]
39276
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39277
+  (0.0ms) SAVEPOINT active_record_1
39278
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-02-17 13:41:34.181697"], ["updated_at", "2015-02-17 13:41:34.181697"]]
39279
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39280
+  (0.6ms) rollback transaction
39281
+  (0.0ms) begin transaction
39282
+  (0.0ms) SAVEPOINT active_record_1
39283
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:34.185625"], ["updated_at", "2015-02-17 13:41:34.185625"]]
39284
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39285
+  (0.0ms) SAVEPOINT active_record_1
39286
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-02-17 13:41:34.187185"], ["updated_at", "2015-02-17 13:41:34.187185"]]
39287
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39288
+  (0.6ms) rollback transaction
39289
+  (0.1ms) begin transaction
39290
+  (0.0ms) SAVEPOINT active_record_1
39291
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:34.190706"], ["updated_at", "2015-02-17 13:41:34.190706"]]
39292
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39293
+  (0.0ms) SAVEPOINT active_record_1
39294
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-02-17 13:41:34.192405"], ["updated_at", "2015-02-17 13:41:34.192405"]]
39295
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39296
+  (0.1ms) SAVEPOINT active_record_1
39297
+ 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-02-17 13:41:34.195754"], ["updated_at", "2015-02-17 13:41:34.195754"]]
39298
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39299
+  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
39300
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
39301
+  (0.0ms) SAVEPOINT active_record_1
39302
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39303
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
39304
+ Notification Load (0.0ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
39305
+ Notification Load (0.0ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
39306
+  (0.8ms) rollback transaction
39307
+  (0.1ms) begin transaction
39308
+  (0.0ms) rollback transaction
39309
+  (0.0ms) begin transaction
39310
+  (0.0ms) rollback transaction
39311
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
39312
+  (1.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
39313
+  (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)
39314
+  (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) 
39315
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
39316
+  (0.1ms) select sqlite_version(*)
39317
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
39318
+  (0.1ms) SELECT version FROM "schema_migrations"
39319
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
39320
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
39321
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
39322
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
39323
+  (0.1ms) begin transaction
39324
+  (0.0ms) SAVEPOINT active_record_1
39325
+ SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-02-17 13:41:58.735939"], ["updated_at", "2015-02-17 13:41:58.735939"]]
39326
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39327
+  (0.1ms) SAVEPOINT active_record_1
39328
+ SQL (1.0ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:58.750378"], ["updated_at", "2015-02-17 13:41:58.750378"]]
39329
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39330
+  (0.0ms) SAVEPOINT active_record_1
39331
+ 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-02-17 13:41:58.753442"], ["updated_at", "2015-02-17 13:41:58.753442"]]
39332
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39333
+ Processing by API::NotificationsController#index as JSON
39334
+ Rendered api/notifications/index.json.jbuilder (0.3ms)
39335
+ Completed 200 OK in 26ms (Views: 10.8ms | ActiveRecord: 0.0ms)
39336
+  (0.7ms) rollback transaction
39337
+  (0.1ms) begin transaction
39338
+  (0.0ms) SAVEPOINT active_record_1
39339
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-02-17 13:41:58.803555"], ["updated_at", "2015-02-17 13:41:58.803555"]]
39340
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39341
+  (0.0ms) SAVEPOINT active_record_1
39342
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:58.805733"], ["updated_at", "2015-02-17 13:41:58.805733"]]
39343
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39344
+  (0.0ms) SAVEPOINT active_record_1
39345
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:41:58.807524"], ["updated_at", "2015-02-17 13:41:58.807524"]]
39346
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39347
+ Processing by API::NotificationsController#index as JSON
39348
+ Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
39349
+ Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
39350
+ Rendered api/notifications/_notify_new_message.json.jbuilder (0.5ms)
39351
+ Rendered api/notifications/index.json.jbuilder (13.7ms)
39352
+ Completed 200 OK in 15ms (Views: 14.0ms | ActiveRecord: 0.2ms)
39353
+  (0.8ms) rollback transaction
39354
+  (0.1ms) begin transaction
39355
+  (0.0ms) SAVEPOINT active_record_1
39356
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-02-17 13:41:58.832585"], ["updated_at", "2015-02-17 13:41:58.832585"]]
39357
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39358
+  (0.0ms) SAVEPOINT active_record_1
39359
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:58.834781"], ["updated_at", "2015-02-17 13:41:58.834781"]]
39360
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39361
+  (0.0ms) SAVEPOINT active_record_1
39362
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:41:58.836992"], ["updated_at", "2015-02-17 13:41:58.836992"]]
39363
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39364
+ Processing by API::NotificationsController#show as JSON
39365
+ Parameters: {"id"=>"1"}
39366
+ 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]]
39367
+ Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
39368
+ Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms)
39369
+ Rendered api/notifications/show.json.jbuilder (2.8ms)
39370
+ Completed 200 OK in 9ms (Views: 4.0ms | ActiveRecord: 0.2ms)
39371
+  (1.0ms) rollback transaction
39372
+  (0.1ms) begin transaction
39373
+  (0.1ms) SAVEPOINT active_record_1
39374
+ SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-02-17 13:41:58.857827"], ["updated_at", "2015-02-17 13:41:58.857827"]]
39375
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39376
+  (0.0ms) SAVEPOINT active_record_1
39377
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:58.861315"], ["updated_at", "2015-02-17 13:41:58.861315"]]
39378
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39379
+  (0.0ms) SAVEPOINT active_record_1
39380
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:41:58.863296"], ["updated_at", "2015-02-17 13:41:58.863296"]]
39381
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39382
+ Processing by API::NotificationsController#update as JSON
39383
+ Parameters: {"id"=>"1"}
39384
+ 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]]
39385
+ SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]
39386
+ Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
39387
+ Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms)
39388
+ Rendered api/notifications/show.json.jbuilder (1.3ms)
39389
+ Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.2ms)
39390
+  (0.6ms) rollback transaction
39391
+  (0.1ms) begin transaction
39392
+  (0.1ms) SAVEPOINT active_record_1
39393
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-02-17 13:41:58.884846"], ["updated_at", "2015-02-17 13:41:58.884846"]]
39394
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39395
+  (0.0ms) SAVEPOINT active_record_1
39396
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:58.886908"], ["updated_at", "2015-02-17 13:41:58.886908"]]
39397
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39398
+  (0.1ms) SAVEPOINT active_record_1
39399
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:41:58.888660"], ["updated_at", "2015-02-17 13:41:58.888660"]]
39400
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39401
+ Processing by API::NotificationsController#update_all as JSON
39402
+ Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = 'f' ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"]]
39403
+ SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]
39404
+ Completed 204 No Content in 3ms (ActiveRecord: 0.2ms)
39405
+ Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]
39406
+  (0.7ms) rollback transaction
39407
+  (0.1ms) begin transaction
39408
+  (0.1ms) SAVEPOINT active_record_1
39409
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-02-17 13:41:59.070027"], ["updated_at", "2015-02-17 13:41:59.070027"]]
39410
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39411
+  (0.0ms) SAVEPOINT active_record_1
39412
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:59.071900"], ["updated_at", "2015-02-17 13:41:59.071900"]]
39413
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39414
+  (0.0ms) SAVEPOINT active_record_1
39415
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:41:59.073577"], ["updated_at", "2015-02-17 13:41:59.073577"]]
39416
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39417
+  (0.7ms) rollback transaction
39418
+  (0.1ms) begin transaction
39419
+  (0.1ms) SAVEPOINT active_record_1
39420
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-02-17 13:41:59.079130"], ["updated_at", "2015-02-17 13:41:59.079130"]]
39421
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39422
+  (0.0ms) SAVEPOINT active_record_1
39423
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:59.081069"], ["updated_at", "2015-02-17 13:41:59.081069"]]
39424
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39425
+  (0.0ms) SAVEPOINT active_record_1
39426
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:41:59.083130"], ["updated_at", "2015-02-17 13:41:59.083130"]]
39427
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39428
+ Rendered notifications_mailer/notify_new_message.html.erb (1.5ms)
39429
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
39430
+
39431
+ NotificationsMailer#send_mail_by: processed outbound mail in 15.6ms
39432
+
39433
+ Sent mail to user7@sleede.com (7.4ms)
39434
+ Date: Tue, 17 Feb 2015 14:41:59 +0100
39435
+ From: contact@sleede.com
39436
+ To: user7@sleede.com
39437
+ Message-ID: <54e3452719c43_7e223fdb34865bec12528@pc12.home.mail>
39438
+ Subject: subject notify new message
39439
+ Mime-Version: 1.0
39440
+ Content-Type: text/html;
39441
+ charset=UTF-8
39442
+ Content-Transfer-Encoding: 7bit
39443
+
39444
+ <p>user7</p>
39445
+ <p>message body</p>
39446
+
39447
+  (0.6ms) rollback transaction
39448
+  (0.0ms) begin transaction
39449
+  (0.1ms) SAVEPOINT active_record_1
39450
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-02-17 13:41:59.111494"], ["updated_at", "2015-02-17 13:41:59.111494"]]
39451
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39452
+  (0.1ms) SAVEPOINT active_record_1
39453
+ SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:59.115320"], ["updated_at", "2015-02-17 13:41:59.115320"]]
39454
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39455
+  (0.1ms) SAVEPOINT active_record_1
39456
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:41:59.118483"], ["updated_at", "2015-02-17 13:41:59.118483"]]
39457
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39458
+ Rendered notifications_mailer/notify_new_message.html.erb (0.1ms)
39459
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
39460
+
39461
+ NotificationsMailer#send_mail_by: processed outbound mail in 2.4ms
39462
+
39463
+ Sent mail to user8@sleede.com (2.2ms)
39464
+ Date: Tue, 17 Feb 2015 14:41:59 +0100
39465
+ From: contact@sleede.com
39466
+ To: user8@sleede.com
39467
+ Message-ID: <54e345271e412_7e223fdb34865bec12660@pc12.home.mail>
39468
+ Subject: subject notify new message
39469
+ Mime-Version: 1.0
39470
+ Content-Type: text/html;
39471
+ charset=UTF-8
39472
+ Content-Transfer-Encoding: 7bit
39473
+
39474
+ <p>user8</p>
39475
+ <p>message body</p>
39476
+
39477
+  (0.6ms) rollback transaction
39478
+  (0.1ms) begin transaction
39479
+  (0.1ms) SAVEPOINT active_record_1
39480
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-02-17 13:41:59.129317"], ["updated_at", "2015-02-17 13:41:59.129317"]]
39481
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39482
+  (0.1ms) SAVEPOINT active_record_1
39483
+ SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:59.132055"], ["updated_at", "2015-02-17 13:41:59.132055"]]
39484
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39485
+  (0.0ms) SAVEPOINT active_record_1
39486
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:41:59.135352"], ["updated_at", "2015-02-17 13:41:59.135352"]]
39487
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39488
+ Rendered notifications_mailer/notify_new_message.html.erb (0.1ms)
39489
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
39490
+
39491
+ NotificationsMailer#send_mail_by: processed outbound mail in 1.4ms
39492
+
39493
+ Sent mail to user9@sleede.com (1.4ms)
39494
+ Date: Tue, 17 Feb 2015 14:41:59 +0100
39495
+ From: contact@sleede.com
39496
+ To: user9@sleede.com
39497
+ Message-ID: <54e345272212c_7e223fdb34865bec127cb@pc12.home.mail>
39498
+ Subject: subject notify new message
39499
+ Mime-Version: 1.0
39500
+ Content-Type: text/html;
39501
+ charset=UTF-8
39502
+ Content-Transfer-Encoding: 7bit
39503
+
39504
+ <p>user9</p>
39505
+ <p>message body</p>
39506
+
39507
+  (0.6ms) rollback transaction
39508
+  (0.1ms) begin transaction
39509
+  (0.0ms) SAVEPOINT active_record_1
39510
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-02-17 13:41:59.143142"], ["updated_at", "2015-02-17 13:41:59.143142"]]
39511
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39512
+  (0.0ms) SAVEPOINT active_record_1
39513
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:59.144835"], ["updated_at", "2015-02-17 13:41:59.144835"]]
39514
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39515
+  (0.0ms) SAVEPOINT active_record_1
39516
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:41:59.146408"], ["updated_at", "2015-02-17 13:41:59.146408"]]
39517
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39518
+ Rendered notifications_mailer/notify_new_message.html.erb (0.0ms)
39519
+ SQL (0.0ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
39520
+
39521
+ NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms
39522
+
39523
+ Sent mail to user10@sleede.com (1.3ms)
39524
+ Date: Tue, 17 Feb 2015 14:41:59 +0100
39525
+ From: contact@sleede.com
39526
+ To: user10@sleede.com
39527
+ Message-ID: <54e3452724755_7e223fdb34865bec128b7@pc12.home.mail>
39528
+ Subject: subject notify new message
39529
+ Mime-Version: 1.0
39530
+ Content-Type: text/html;
39531
+ charset=UTF-8
39532
+ Content-Transfer-Encoding: 7bit
39533
+
39534
+ <p>user10</p>
39535
+ <p>message body</p>
39536
+
39537
+  (0.6ms) rollback transaction
39538
+  (0.1ms) begin transaction
39539
+  (0.0ms) SAVEPOINT active_record_1
39540
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:59.159650"], ["updated_at", "2015-02-17 13:41:59.159650"]]
39541
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39542
+  (0.0ms) SAVEPOINT active_record_1
39543
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-02-17 13:41:59.161121"], ["updated_at", "2015-02-17 13:41:59.161121"]]
39544
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39545
+  (0.0ms) SAVEPOINT active_record_1
39546
+ 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-02-17 13:41:59.163029"], ["updated_at", "2015-02-17 13:41:59.163029"]]
39547
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39548
+  (0.5ms) rollback transaction
39549
+  (0.0ms) begin transaction
39550
+  (0.0ms) SAVEPOINT active_record_1
39551
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:59.165672"], ["updated_at", "2015-02-17 13:41:59.165672"]]
39552
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39553
+  (0.0ms) SAVEPOINT active_record_1
39554
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-02-17 13:41:59.167137"], ["updated_at", "2015-02-17 13:41:59.167137"]]
39555
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39556
+  (0.6ms) rollback transaction
39557
+  (0.1ms) begin transaction
39558
+  (0.0ms) SAVEPOINT active_record_1
39559
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:59.174403"], ["updated_at", "2015-02-17 13:41:59.174403"]]
39560
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39561
+  (0.1ms) SAVEPOINT active_record_1
39562
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-02-17 13:41:59.176786"], ["updated_at", "2015-02-17 13:41:59.176786"]]
39563
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39564
+  (0.6ms) rollback transaction
39565
+  (0.2ms) begin transaction
39566
+  (0.1ms) SAVEPOINT active_record_1
39567
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:59.183075"], ["updated_at", "2015-02-17 13:41:59.183075"]]
39568
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39569
+  (0.1ms) SAVEPOINT active_record_1
39570
+ SQL (0.8ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-02-17 13:41:59.185701"], ["updated_at", "2015-02-17 13:41:59.185701"]]
39571
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39572
+  (0.7ms) rollback transaction
39573
+  (0.1ms) begin transaction
39574
+  (0.0ms) SAVEPOINT active_record_1
39575
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:59.192193"], ["updated_at", "2015-02-17 13:41:59.192193"]]
39576
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39577
+  (0.0ms) SAVEPOINT active_record_1
39578
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-02-17 13:41:59.193892"], ["updated_at", "2015-02-17 13:41:59.193892"]]
39579
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39580
+  (0.1ms) SAVEPOINT active_record_1
39581
+ 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-02-17 13:41:59.196415"], ["updated_at", "2015-02-17 13:41:59.196415"]]
39582
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39583
+ SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]
39584
+  (0.7ms) rollback transaction
39585
+  (0.1ms) begin transaction
39586
+  (0.0ms) SAVEPOINT active_record_1
39587
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:59.200178"], ["updated_at", "2015-02-17 13:41:59.200178"]]
39588
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39589
+  (0.0ms) SAVEPOINT active_record_1
39590
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-02-17 13:41:59.201806"], ["updated_at", "2015-02-17 13:41:59.201806"]]
39591
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39592
+  (0.0ms) SAVEPOINT active_record_1
39593
+ 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-02-17 13:41:59.203728"], ["updated_at", "2015-02-17 13:41:59.203728"]]
39594
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39595
+ Rendered notifications_mailer/notify_new_message.html.erb (0.0ms)
39596
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
39597
+
39598
+ NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms
39599
+
39600
+ Sent mail to user16@sleede.com (1.5ms)
39601
+ Date: Tue, 17 Feb 2015 14:41:59 +0100
39602
+ From: contact@sleede.com
39603
+ To: user16@sleede.com
39604
+ Message-ID: <54e34527328e6_7e223fdb34865bec12957@pc12.home.mail>
39605
+ Subject: subject notify new message
39606
+ Mime-Version: 1.0
39607
+ Content-Type: text/html;
39608
+ charset=UTF-8
39609
+ Content-Transfer-Encoding: 7bit
39610
+
39611
+ <p>user16</p>
39612
+ <p>message body</p>
39613
+
39614
+  (0.7ms) rollback transaction
39615
+  (0.1ms) begin transaction
39616
+  (0.0ms) SAVEPOINT active_record_1
39617
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:59.211630"], ["updated_at", "2015-02-17 13:41:59.211630"]]
39618
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39619
+  (0.0ms) SAVEPOINT active_record_1
39620
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-02-17 13:41:59.213471"], ["updated_at", "2015-02-17 13:41:59.213471"]]
39621
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39622
+  (0.0ms) SAVEPOINT active_record_1
39623
+ 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-02-17 13:41:59.215577"], ["updated_at", "2015-02-17 13:41:59.215577"]]
39624
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39625
+ [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 86d693e3-601c-4f4f-9113-f53d504921b0) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Notification/1
39626
+ [ActiveJob] Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]
39627
+ [ActiveJob] [ActionMailer::DeliveryJob] [86d693e3-601c-4f4f-9113-f53d504921b0] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Notification/1
39628
+ [ActiveJob] [ActionMailer::DeliveryJob] [86d693e3-601c-4f4f-9113-f53d504921b0] User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
39629
+ [ActiveJob] [ActionMailer::DeliveryJob] [86d693e3-601c-4f4f-9113-f53d504921b0] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
39630
+ [ActiveJob] [ActionMailer::DeliveryJob] [86d693e3-601c-4f4f-9113-f53d504921b0] Rendered notifications_mailer/notify_new_message.html.erb (0.2ms)
39631
+ [ActiveJob] [ActionMailer::DeliveryJob] [86d693e3-601c-4f4f-9113-f53d504921b0] SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
39632
+ [ActiveJob] [ActionMailer::DeliveryJob] [86d693e3-601c-4f4f-9113-f53d504921b0]
39633
+ NotificationsMailer#send_mail_by: processed outbound mail in 6.9ms
39634
+ [ActiveJob] [ActionMailer::DeliveryJob] [86d693e3-601c-4f4f-9113-f53d504921b0]
39635
+ Sent mail to user17@sleede.com (1.6ms)
39636
+ [ActiveJob] [ActionMailer::DeliveryJob] [86d693e3-601c-4f4f-9113-f53d504921b0] Date: Tue, 17 Feb 2015 14:41:59 +0100
39637
+ From: contact@sleede.com
39638
+ To: user17@sleede.com
39639
+ Message-ID: <54e345273ba07_7e223fdb34865bec130a1@pc12.home.mail>
39640
+ Subject: subject notify new message
39641
+ Mime-Version: 1.0
39642
+ Content-Type: text/html;
39643
+ charset=UTF-8
39644
+ Content-Transfer-Encoding: 7bit
39645
+
39646
+ <p>user17</p>
39647
+ <p>message body</p>
39648
+
39649
+ [ActiveJob] [ActionMailer::DeliveryJob] [86d693e3-601c-4f4f-9113-f53d504921b0] Performed ActionMailer::DeliveryJob from Inline(mailers) in 8.88ms
39650
+  (0.7ms) rollback transaction
39651
+  (0.1ms) begin transaction
39652
+  (0.0ms) SAVEPOINT active_record_1
39653
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:59.248005"], ["updated_at", "2015-02-17 13:41:59.248005"]]
39654
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39655
+  (0.0ms) SAVEPOINT active_record_1
39656
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-02-17 13:41:59.249670"], ["updated_at", "2015-02-17 13:41:59.249670"]]
39657
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39658
+  (0.6ms) rollback transaction
39659
+  (0.1ms) begin transaction
39660
+  (0.0ms) SAVEPOINT active_record_1
39661
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:59.253136"], ["updated_at", "2015-02-17 13:41:59.253136"]]
39662
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39663
+  (0.1ms) SAVEPOINT active_record_1
39664
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-02-17 13:41:59.255949"], ["updated_at", "2015-02-17 13:41:59.255949"]]
39665
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39666
+  (0.6ms) rollback transaction
39667
+  (0.1ms) begin transaction
39668
+  (0.0ms) SAVEPOINT active_record_1
39669
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:59.260095"], ["updated_at", "2015-02-17 13:41:59.260095"]]
39670
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39671
+  (0.0ms) SAVEPOINT active_record_1
39672
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-02-17 13:41:59.261798"], ["updated_at", "2015-02-17 13:41:59.261798"]]
39673
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39674
+  (0.6ms) rollback transaction
39675
+  (0.0ms) begin transaction
39676
+  (0.0ms) SAVEPOINT active_record_1
39677
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:41:59.265218"], ["updated_at", "2015-02-17 13:41:59.265218"]]
39678
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39679
+  (0.0ms) SAVEPOINT active_record_1
39680
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-02-17 13:41:59.266802"], ["updated_at", "2015-02-17 13:41:59.266802"]]
39681
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39682
+  (0.3ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
39683
+  (0.1ms) SAVEPOINT active_record_1
39684
+ 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-02-17 13:41:59.273743"], ["updated_at", "2015-02-17 13:41:59.273743"]]
39685
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39686
+  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
39687
+  (0.8ms) rollback transaction
39688
+  (0.1ms) begin transaction
39689
+  (0.0ms) rollback transaction
39690
+  (0.0ms) begin transaction
39691
+  (0.0ms) rollback transaction
39692
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
39693
+  (1.0ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
39694
+  (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)
39695
+  (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) 
39696
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
39697
+  (0.1ms) select sqlite_version(*)
39698
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
39699
+  (0.1ms) SELECT version FROM "schema_migrations"
39700
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
39701
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
39702
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
39703
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
39704
+  (0.1ms) begin transaction
39705
+  (0.1ms) SAVEPOINT active_record_1
39706
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-02-17 13:44:39.664476"], ["updated_at", "2015-02-17 13:44:39.664476"]]
39707
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39708
+  (0.1ms) SAVEPOINT active_record_1
39709
+ SQL (1.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:44:39.679678"], ["updated_at", "2015-02-17 13:44:39.679678"]]
39710
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39711
+  (0.0ms) SAVEPOINT active_record_1
39712
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:44:39.683059"], ["updated_at", "2015-02-17 13:44:39.683059"]]
39713
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39714
+ Processing by API::NotificationsController#index as JSON
39715
+ Rendered api/notifications/index.json.jbuilder (0.3ms)
39716
+ Completed 200 OK in 19ms (Views: 8.7ms | ActiveRecord: 0.0ms)
39717
+  (0.6ms) rollback transaction
39718
+  (0.1ms) begin transaction
39719
+  (0.0ms) SAVEPOINT active_record_1
39720
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-02-17 13:44:39.722402"], ["updated_at", "2015-02-17 13:44:39.722402"]]
39721
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39722
+  (0.0ms) SAVEPOINT active_record_1
39723
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:44:39.724509"], ["updated_at", "2015-02-17 13:44:39.724509"]]
39724
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39725
+  (0.0ms) SAVEPOINT active_record_1
39726
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:44:39.726206"], ["updated_at", "2015-02-17 13:44:39.726206"]]
39727
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39728
+ Processing by API::NotificationsController#index as JSON
39729
+ Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
39730
+ Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
39731
+ Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms)
39732
+ Rendered api/notifications/index.json.jbuilder (13.7ms)
39733
+ Completed 200 OK in 16ms (Views: 14.1ms | ActiveRecord: 0.3ms)
39734
+  (0.6ms) rollback transaction
39735
+  (0.1ms) begin transaction
39736
+  (0.0ms) SAVEPOINT active_record_1
39737
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-02-17 13:44:39.750576"], ["updated_at", "2015-02-17 13:44:39.750576"]]
39738
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39739
+  (0.0ms) SAVEPOINT active_record_1
39740
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:44:39.752706"], ["updated_at", "2015-02-17 13:44:39.752706"]]
39741
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39742
+  (0.0ms) SAVEPOINT active_record_1
39743
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:44:39.754481"], ["updated_at", "2015-02-17 13:44:39.754481"]]
39744
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39745
+ Processing by API::NotificationsController#show as JSON
39746
+ Parameters: {"id"=>"1"}
39747
+ 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]]
39748
+ Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
39749
+ Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms)
39750
+ Rendered api/notifications/show.json.jbuilder (1.9ms)
39751
+ Completed 200 OK in 9ms (Views: 3.2ms | ActiveRecord: 0.2ms)
39752
+  (0.8ms) rollback transaction
39753
+  (0.1ms) begin transaction
39754
+  (0.1ms) SAVEPOINT active_record_1
39755
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-02-17 13:44:39.772551"], ["updated_at", "2015-02-17 13:44:39.772551"]]
39756
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39757
+  (0.0ms) SAVEPOINT active_record_1
39758
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:44:39.774560"], ["updated_at", "2015-02-17 13:44:39.774560"]]
39759
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39760
+  (0.0ms) SAVEPOINT active_record_1
39761
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:44:39.776399"], ["updated_at", "2015-02-17 13:44:39.776399"]]
39762
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39763
+ Processing by API::NotificationsController#update as JSON
39764
+ Parameters: {"id"=>"1"}
39765
+ 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]]
39766
+ SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]
39767
+ Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
39768
+ Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms)
39769
+ Rendered api/notifications/show.json.jbuilder (1.4ms)
39770
+ Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.2ms)
39771
+  (0.7ms) rollback transaction
39772
+  (0.1ms) begin transaction
39773
+  (0.0ms) SAVEPOINT active_record_1
39774
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-02-17 13:44:39.788965"], ["updated_at", "2015-02-17 13:44:39.788965"]]
39775
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39776
+  (0.0ms) SAVEPOINT active_record_1
39777
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:44:39.791234"], ["updated_at", "2015-02-17 13:44:39.791234"]]
39778
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39779
+  (0.1ms) SAVEPOINT active_record_1
39780
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:44:39.793222"], ["updated_at", "2015-02-17 13:44:39.793222"]]
39781
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39782
+ Processing by API::NotificationsController#update_all as JSON
39783
+ Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = 'f' ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"]]
39784
+ SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]
39785
+ Completed 204 No Content in 3ms (ActiveRecord: 0.2ms)
39786
+ Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]
39787
+  (0.7ms) rollback transaction
39788
+  (0.1ms) begin transaction
39789
+  (0.3ms) SAVEPOINT active_record_1
39790
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-02-17 13:44:40.047786"], ["updated_at", "2015-02-17 13:44:40.047786"]]
39791
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39792
+  (0.2ms) SAVEPOINT active_record_1
39793
+ SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:44:40.052395"], ["updated_at", "2015-02-17 13:44:40.052395"]]
39794
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39795
+  (5.2ms) SAVEPOINT active_record_1
39796
+ 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-02-17 13:44:40.081658"], ["updated_at", "2015-02-17 13:44:40.081658"]]
39797
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39798
+  (2.0ms) rollback transaction
39799
+  (0.1ms) begin transaction
39800
+  (0.1ms) SAVEPOINT active_record_1
39801
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-02-17 13:44:40.091843"], ["updated_at", "2015-02-17 13:44:40.091843"]]
39802
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39803
+  (0.0ms) SAVEPOINT active_record_1
39804
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:44:40.093770"], ["updated_at", "2015-02-17 13:44:40.093770"]]
39805
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39806
+  (0.0ms) SAVEPOINT active_record_1
39807
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:44:40.095548"], ["updated_at", "2015-02-17 13:44:40.095548"]]
39808
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39809
+ Rendered notifications_mailer/notify_new_message.html.erb (1.5ms)
39810
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
39811
+
39812
+ NotificationsMailer#send_mail_by: processed outbound mail in 13.8ms
39813
+
39814
+ Sent mail to user7@sleede.com (6.1ms)
39815
+ Date: Tue, 17 Feb 2015 14:44:40 +0100
39816
+ From: contact@sleede.com
39817
+ To: user7@sleede.com
39818
+ Message-ID: <54e345c81c247_82283fc275465c1878831@pc12.home.mail>
39819
+ Subject: subject notify new message
39820
+ Mime-Version: 1.0
39821
+ Content-Type: text/html;
39822
+ charset=UTF-8
39823
+ Content-Transfer-Encoding: 7bit
39824
+
39825
+ <p>user7</p>
39826
+ <p>message body</p>
39827
+
39828
+  (0.6ms) rollback transaction
39829
+  (0.1ms) begin transaction
39830
+  (0.1ms) SAVEPOINT active_record_1
39831
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-02-17 13:44:40.120895"], ["updated_at", "2015-02-17 13:44:40.120895"]]
39832
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39833
+  (0.0ms) SAVEPOINT active_record_1
39834
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:44:40.122835"], ["updated_at", "2015-02-17 13:44:40.122835"]]
39835
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39836
+  (0.0ms) SAVEPOINT active_record_1
39837
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:44:40.124532"], ["updated_at", "2015-02-17 13:44:40.124532"]]
39838
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39839
+ Rendered notifications_mailer/notify_new_message.html.erb (0.1ms)
39840
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
39841
+
39842
+ NotificationsMailer#send_mail_by: processed outbound mail in 2.6ms
39843
+
39844
+ Sent mail to user8@sleede.com (2.5ms)
39845
+ Date: Tue, 17 Feb 2015 14:44:40 +0100
39846
+ From: contact@sleede.com
39847
+ To: user8@sleede.com
39848
+ Message-ID: <54e345c81fe1e_82283fc275465c187893e@pc12.home.mail>
39849
+ Subject: subject notify new message
39850
+ Mime-Version: 1.0
39851
+ Content-Type: text/html;
39852
+ charset=UTF-8
39853
+ Content-Transfer-Encoding: 7bit
39854
+
39855
+ <p>user8</p>
39856
+ <p>message body</p>
39857
+
39858
+  (0.8ms) rollback transaction
39859
+  (0.1ms) begin transaction
39860
+  (0.1ms) SAVEPOINT active_record_1
39861
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-02-17 13:44:40.135468"], ["updated_at", "2015-02-17 13:44:40.135468"]]
39862
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39863
+  (0.0ms) SAVEPOINT active_record_1
39864
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:44:40.137503"], ["updated_at", "2015-02-17 13:44:40.137503"]]
39865
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39866
+  (0.0ms) SAVEPOINT active_record_1
39867
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:44:40.139302"], ["updated_at", "2015-02-17 13:44:40.139302"]]
39868
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39869
+ Rendered notifications_mailer/notify_new_message.html.erb (0.1ms)
39870
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
39871
+
39872
+ NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms
39873
+
39874
+ Sent mail to user9@sleede.com (1.6ms)
39875
+ Date: Tue, 17 Feb 2015 14:44:40 +0100
39876
+ From: contact@sleede.com
39877
+ To: user9@sleede.com
39878
+ Message-ID: <54e345c822cb8_82283fc275465c1879029@pc12.home.mail>
39879
+ Subject: subject notify new message
39880
+ Mime-Version: 1.0
39881
+ Content-Type: text/html;
39882
+ charset=UTF-8
39883
+ Content-Transfer-Encoding: 7bit
39884
+
39885
+ <p>user9</p>
39886
+ <p>message body</p>
39887
+
39888
+  (0.7ms) rollback transaction
39889
+  (0.1ms) begin transaction
39890
+  (0.1ms) SAVEPOINT active_record_1
39891
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-02-17 13:44:40.146957"], ["updated_at", "2015-02-17 13:44:40.146957"]]
39892
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39893
+  (0.1ms) SAVEPOINT active_record_1
39894
+ SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:44:40.149174"], ["updated_at", "2015-02-17 13:44:40.149174"]]
39895
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39896
+  (0.1ms) SAVEPOINT active_record_1
39897
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:44:40.151247"], ["updated_at", "2015-02-17 13:44:40.151247"]]
39898
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39899
+ Rendered notifications_mailer/notify_new_message.html.erb (0.1ms)
39900
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
39901
+
39902
+ NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms
39903
+
39904
+ Sent mail to user10@sleede.com (2.0ms)
39905
+ Date: Tue, 17 Feb 2015 14:44:40 +0100
39906
+ From: contact@sleede.com
39907
+ To: user10@sleede.com
39908
+ Message-ID: <54e345c825b35_82283fc275465c18791e1@pc12.home.mail>
39909
+ Subject: subject notify new message
39910
+ Mime-Version: 1.0
39911
+ Content-Type: text/html;
39912
+ charset=UTF-8
39913
+ Content-Transfer-Encoding: 7bit
39914
+
39915
+ <p>user10</p>
39916
+ <p>message body</p>
39917
+
39918
+  (0.7ms) rollback transaction
39919
+  (0.1ms) begin transaction
39920
+  (0.0ms) SAVEPOINT active_record_1
39921
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:44:40.166176"], ["updated_at", "2015-02-17 13:44:40.166176"]]
39922
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39923
+  (0.1ms) SAVEPOINT active_record_1
39924
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-02-17 13:44:40.169215"], ["updated_at", "2015-02-17 13:44:40.169215"]]
39925
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39926
+  (0.1ms) SAVEPOINT active_record_1
39927
+ 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-02-17 13:44:40.173191"], ["updated_at", "2015-02-17 13:44:40.173191"]]
39928
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39929
+  (1.1ms) rollback transaction
39930
+  (0.1ms) begin transaction
39931
+  (0.0ms) SAVEPOINT active_record_1
39932
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:44:40.178645"], ["updated_at", "2015-02-17 13:44:40.178645"]]
39933
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39934
+  (0.0ms) SAVEPOINT active_record_1
39935
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-02-17 13:44:40.180381"], ["updated_at", "2015-02-17 13:44:40.180381"]]
39936
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39937
+  (0.8ms) rollback transaction
39938
+  (0.6ms) begin transaction
39939
+  (0.0ms) SAVEPOINT active_record_1
39940
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:44:40.186668"], ["updated_at", "2015-02-17 13:44:40.186668"]]
39941
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39942
+  (0.0ms) SAVEPOINT active_record_1
39943
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-02-17 13:44:40.188453"], ["updated_at", "2015-02-17 13:44:40.188453"]]
39944
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39945
+  (0.8ms) rollback transaction
39946
+  (0.1ms) begin transaction
39947
+  (0.0ms) SAVEPOINT active_record_1
39948
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:44:40.194020"], ["updated_at", "2015-02-17 13:44:40.194020"]]
39949
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39950
+  (0.0ms) SAVEPOINT active_record_1
39951
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-02-17 13:44:40.195666"], ["updated_at", "2015-02-17 13:44:40.195666"]]
39952
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39953
+  (0.7ms) rollback transaction
39954
+  (0.0ms) begin transaction
39955
+  (0.0ms) SAVEPOINT active_record_1
39956
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:44:40.200125"], ["updated_at", "2015-02-17 13:44:40.200125"]]
39957
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39958
+  (0.0ms) SAVEPOINT active_record_1
39959
+ SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-02-17 13:44:40.201777"], ["updated_at", "2015-02-17 13:44:40.201777"]]
39960
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39961
+  (0.2ms) SAVEPOINT active_record_1
39962
+ SQL (1.0ms) INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-02-17 13:44:40.208140"], ["updated_at", "2015-02-17 13:44:40.208140"]]
39963
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39964
+ SQL (0.3ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]
39965
+  (1.2ms) rollback transaction
39966
+  (0.3ms) begin transaction
39967
+  (0.1ms) SAVEPOINT active_record_1
39968
+ SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:44:40.221966"], ["updated_at", "2015-02-17 13:44:40.221966"]]
39969
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39970
+  (0.1ms) SAVEPOINT active_record_1
39971
+ SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-02-17 13:44:40.225117"], ["updated_at", "2015-02-17 13:44:40.225117"]]
39972
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39973
+  (0.1ms) SAVEPOINT active_record_1
39974
+ 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-02-17 13:44:40.229011"], ["updated_at", "2015-02-17 13:44:40.229011"]]
39975
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39976
+ Rendered notifications_mailer/notify_new_message.html.erb (0.0ms)
39977
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
39978
+
39979
+ NotificationsMailer#send_mail_by: processed outbound mail in 1.4ms
39980
+
39981
+ Sent mail to user16@sleede.com (1.4ms)
39982
+ Date: Tue, 17 Feb 2015 14:44:40 +0100
39983
+ From: contact@sleede.com
39984
+ To: user16@sleede.com
39985
+ Message-ID: <54e345c838cd1_82283fc275465c18792f@pc12.home.mail>
39986
+ Subject: subject notify new message
39987
+ Mime-Version: 1.0
39988
+ Content-Type: text/html;
39989
+ charset=UTF-8
39990
+ Content-Transfer-Encoding: 7bit
39991
+
39992
+ <p>user16</p>
39993
+ <p>message body</p>
39994
+
39995
+  (0.7ms) rollback transaction
39996
+  (0.2ms) begin transaction
39997
+  (0.1ms) SAVEPOINT active_record_1
39998
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:44:40.237603"], ["updated_at", "2015-02-17 13:44:40.237603"]]
39999
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40000
+  (0.0ms) SAVEPOINT active_record_1
40001
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-02-17 13:44:40.239454"], ["updated_at", "2015-02-17 13:44:40.239454"]]
40002
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40003
+  (0.0ms) SAVEPOINT active_record_1
40004
+ 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-02-17 13:44:40.242131"], ["updated_at", "2015-02-17 13:44:40.242131"]]
40005
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40006
+ [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 1d86452d-ea58-4066-aebf-0daf1f4274a4) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Notification/1
40007
+ [ActiveJob] Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]
40008
+ [ActiveJob] [ActionMailer::DeliveryJob] [1d86452d-ea58-4066-aebf-0daf1f4274a4] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Notification/1
40009
+ [ActiveJob] [ActionMailer::DeliveryJob] [1d86452d-ea58-4066-aebf-0daf1f4274a4] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
40010
+ [ActiveJob] [ActionMailer::DeliveryJob] [1d86452d-ea58-4066-aebf-0daf1f4274a4] Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
40011
+ [ActiveJob] [ActionMailer::DeliveryJob] [1d86452d-ea58-4066-aebf-0daf1f4274a4] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms)
40012
+ [ActiveJob] [ActionMailer::DeliveryJob] [1d86452d-ea58-4066-aebf-0daf1f4274a4] SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
40013
+ [ActiveJob] [ActionMailer::DeliveryJob] [1d86452d-ea58-4066-aebf-0daf1f4274a4]
40014
+ NotificationsMailer#send_mail_by: processed outbound mail in 4.2ms
40015
+ [ActiveJob] [ActionMailer::DeliveryJob] [1d86452d-ea58-4066-aebf-0daf1f4274a4]
40016
+ Sent mail to user17@sleede.com (3.1ms)
40017
+ [ActiveJob] [ActionMailer::DeliveryJob] [1d86452d-ea58-4066-aebf-0daf1f4274a4] Date: Tue, 17 Feb 2015 14:44:40 +0100
40018
+ From: contact@sleede.com
40019
+ To: user17@sleede.com
40020
+ Message-ID: <54e345c841fbd_82283fc275465c18793b2@pc12.home.mail>
40021
+ Subject: subject notify new message
40022
+ Mime-Version: 1.0
40023
+ Content-Type: text/html;
40024
+ charset=UTF-8
40025
+ Content-Transfer-Encoding: 7bit
40026
+
40027
+ <p>user17</p>
40028
+ <p>message body</p>
40029
+
40030
+ [ActiveJob] [ActionMailer::DeliveryJob] [1d86452d-ea58-4066-aebf-0daf1f4274a4] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.8ms
40031
+  (0.7ms) rollback transaction
40032
+  (0.1ms) begin transaction
40033
+  (0.0ms) SAVEPOINT active_record_1
40034
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:44:40.274836"], ["updated_at", "2015-02-17 13:44:40.274836"]]
40035
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40036
+  (0.1ms) SAVEPOINT active_record_1
40037
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-02-17 13:44:40.276425"], ["updated_at", "2015-02-17 13:44:40.276425"]]
40038
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40039
+  (0.5ms) rollback transaction
40040
+  (0.0ms) begin transaction
40041
+  (0.0ms) SAVEPOINT active_record_1
40042
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:44:40.279703"], ["updated_at", "2015-02-17 13:44:40.279703"]]
40043
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40044
+  (0.0ms) SAVEPOINT active_record_1
40045
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-02-17 13:44:40.281349"], ["updated_at", "2015-02-17 13:44:40.281349"]]
40046
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40047
+  (0.6ms) rollback transaction
40048
+  (0.0ms) begin transaction
40049
+  (0.0ms) SAVEPOINT active_record_1
40050
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:44:40.286561"], ["updated_at", "2015-02-17 13:44:40.286561"]]
40051
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40052
+  (0.0ms) SAVEPOINT active_record_1
40053
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-02-17 13:44:40.288306"], ["updated_at", "2015-02-17 13:44:40.288306"]]
40054
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40055
+  (0.7ms) rollback transaction
40056
+  (0.0ms) begin transaction
40057
+  (0.0ms) SAVEPOINT active_record_1
40058
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:44:40.291759"], ["updated_at", "2015-02-17 13:44:40.291759"]]
40059
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40060
+  (0.0ms) SAVEPOINT active_record_1
40061
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-02-17 13:44:40.293315"], ["updated_at", "2015-02-17 13:44:40.293315"]]
40062
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40063
+  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
40064
+  (0.0ms) SAVEPOINT active_record_1
40065
+ 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-02-17 13:44:40.300106"], ["updated_at", "2015-02-17 13:44:40.300106"]]
40066
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40067
+  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
40068
+  (0.7ms) rollback transaction
40069
+  (0.1ms) begin transaction
40070
+  (0.0ms) SAVEPOINT active_record_1
40071
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:44:40.304636"], ["updated_at", "2015-02-17 13:44:40.304636"]]
40072
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40073
+  (0.2ms) SAVEPOINT active_record_1
40074
+ SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-02-17 13:44:40.309578"], ["updated_at", "2015-02-17 13:44:40.309578"]]
40075
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40076
+  (0.1ms) SAVEPOINT active_record_1
40077
+ 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-02-17 13:44:40.313772"], ["updated_at", "2015-02-17 13:44:40.313772"]]
40078
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40079
+  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
40080
+  (0.0ms) SAVEPOINT active_record_1
40081
+ SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]
40082
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40083
+  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
40084
+  (0.6ms) rollback transaction
40085
+  (0.1ms) begin transaction
40086
+  (0.0ms) rollback transaction
40087
+  (0.1ms) begin transaction
40088
+  (0.0ms) rollback transaction
40089
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
40090
+  (9.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
40091
+  (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)
40092
+  (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) 
40093
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
40094
+  (0.1ms) select sqlite_version(*)
40095
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
40096
+  (0.1ms) SELECT version FROM "schema_migrations"
40097
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
40098
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
40099
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
40100
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
40101
+  (0.1ms) begin transaction
40102
+  (0.1ms) SAVEPOINT active_record_1
40103
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-02-17 13:45:03.017032"], ["updated_at", "2015-02-17 13:45:03.017032"]]
40104
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40105
+  (0.1ms) SAVEPOINT active_record_1
40106
+ SQL (1.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:45:03.032950"], ["updated_at", "2015-02-17 13:45:03.032950"]]
40107
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40108
+  (0.1ms) SAVEPOINT active_record_1
40109
+ 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-02-17 13:45:03.036538"], ["updated_at", "2015-02-17 13:45:03.036538"]]
40110
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40111
+ Processing by API::NotificationsController#index as JSON
40112
+ Rendered api/notifications/index.json.jbuilder (0.3ms)
40113
+ Completed 200 OK in 20ms (Views: 8.9ms | ActiveRecord: 0.0ms)
40114
+  (0.7ms) rollback transaction
40115
+  (0.1ms) begin transaction
40116
+  (0.1ms) SAVEPOINT active_record_1
40117
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-02-17 13:45:03.081438"], ["updated_at", "2015-02-17 13:45:03.081438"]]
40118
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40119
+  (0.0ms) SAVEPOINT active_record_1
40120
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:45:03.083656"], ["updated_at", "2015-02-17 13:45:03.083656"]]
40121
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40122
+  (0.0ms) SAVEPOINT active_record_1
40123
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:45:03.085484"], ["updated_at", "2015-02-17 13:45:03.085484"]]
40124
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40125
+ Processing by API::NotificationsController#index as JSON
40126
+ Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
40127
+ Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
40128
+ Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms)
40129
+ Rendered api/notifications/index.json.jbuilder (12.5ms)
40130
+ Completed 200 OK in 14ms (Views: 12.7ms | ActiveRecord: 0.2ms)
40131
+  (0.6ms) rollback transaction
40132
+  (0.1ms) begin transaction
40133
+  (0.0ms) SAVEPOINT active_record_1
40134
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-02-17 13:45:03.108632"], ["updated_at", "2015-02-17 13:45:03.108632"]]
40135
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40136
+  (0.0ms) SAVEPOINT active_record_1
40137
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:45:03.110707"], ["updated_at", "2015-02-17 13:45:03.110707"]]
40138
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40139
+  (0.0ms) SAVEPOINT active_record_1
40140
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:45:03.112514"], ["updated_at", "2015-02-17 13:45:03.112514"]]
40141
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40142
+ Processing by API::NotificationsController#show as JSON
40143
+ Parameters: {"id"=>"1"}
40144
+ 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]]
40145
+ Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
40146
+ Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms)
40147
+ Rendered api/notifications/show.json.jbuilder (1.9ms)
40148
+ Completed 200 OK in 8ms (Views: 3.2ms | ActiveRecord: 0.2ms)
40149
+  (1.3ms) rollback transaction
40150
+  (0.1ms) begin transaction
40151
+  (0.1ms) SAVEPOINT active_record_1
40152
+ SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-02-17 13:45:03.132267"], ["updated_at", "2015-02-17 13:45:03.132267"]]
40153
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40154
+  (0.1ms) SAVEPOINT active_record_1
40155
+ SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:45:03.137328"], ["updated_at", "2015-02-17 13:45:03.137328"]]
40156
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40157
+  (0.0ms) SAVEPOINT active_record_1
40158
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:45:03.139807"], ["updated_at", "2015-02-17 13:45:03.139807"]]
40159
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40160
+ Processing by API::NotificationsController#update as JSON
40161
+ Parameters: {"id"=>"1"}
40162
+ 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]]
40163
+ SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]
40164
+ Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
40165
+ Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms)
40166
+ Rendered api/notifications/show.json.jbuilder (1.3ms)
40167
+ Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.2ms)
40168
+  (0.6ms) rollback transaction
40169
+  (0.1ms) begin transaction
40170
+  (0.1ms) SAVEPOINT active_record_1
40171
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-02-17 13:45:03.160761"], ["updated_at", "2015-02-17 13:45:03.160761"]]
40172
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40173
+  (0.1ms) SAVEPOINT active_record_1
40174
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:45:03.162725"], ["updated_at", "2015-02-17 13:45:03.162725"]]
40175
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40176
+  (0.1ms) SAVEPOINT active_record_1
40177
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:45:03.164478"], ["updated_at", "2015-02-17 13:45:03.164478"]]
40178
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40179
+ Processing by API::NotificationsController#update_all as JSON
40180
+ Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = 'f' ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"]]
40181
+ SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]
40182
+ Completed 204 No Content in 3ms (ActiveRecord: 0.2ms)
40183
+ Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]
40184
+  (0.6ms) rollback transaction
40185
+  (0.1ms) begin transaction
40186
+  (0.1ms) SAVEPOINT active_record_1
40187
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-02-17 13:45:03.345035"], ["updated_at", "2015-02-17 13:45:03.345035"]]
40188
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40189
+  (0.0ms) SAVEPOINT active_record_1
40190
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:45:03.347046"], ["updated_at", "2015-02-17 13:45:03.347046"]]
40191
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40192
+  (0.0ms) SAVEPOINT active_record_1
40193
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:45:03.348897"], ["updated_at", "2015-02-17 13:45:03.348897"]]
40194
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40195
+  (0.7ms) rollback transaction
40196
+  (0.0ms) begin transaction
40197
+  (0.0ms) SAVEPOINT active_record_1
40198
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-02-17 13:45:03.354630"], ["updated_at", "2015-02-17 13:45:03.354630"]]
40199
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40200
+  (0.0ms) SAVEPOINT active_record_1
40201
+ SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:45:03.356549"], ["updated_at", "2015-02-17 13:45:03.356549"]]
40202
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40203
+  (0.0ms) SAVEPOINT active_record_1
40204
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:45:03.358695"], ["updated_at", "2015-02-17 13:45:03.358695"]]
40205
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40206
+ Rendered notifications_mailer/notify_new_message.html.erb (1.5ms)
40207
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
40208
+
40209
+ NotificationsMailer#send_mail_by: processed outbound mail in 15.6ms
40210
+
40211
+ Sent mail to user7@sleede.com (6.6ms)
40212
+ Date: Tue, 17 Feb 2015 14:45:03 +0100
40213
+ From: contact@sleede.com
40214
+ To: user7@sleede.com
40215
+ Message-ID: <54e345df5cf9b_82f23fc58cc65bec892ae@pc12.home.mail>
40216
+ Subject: subject notify new message
40217
+ Mime-Version: 1.0
40218
+ Content-Type: text/html;
40219
+ charset=UTF-8
40220
+ Content-Transfer-Encoding: 7bit
40221
+
40222
+ <p>user7</p>
40223
+ <p>message body</p>
40224
+
40225
+  (0.7ms) rollback transaction
40226
+  (0.1ms) begin transaction
40227
+  (0.1ms) SAVEPOINT active_record_1
40228
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-02-17 13:45:03.386706"], ["updated_at", "2015-02-17 13:45:03.386706"]]
40229
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40230
+  (0.1ms) SAVEPOINT active_record_1
40231
+ SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:45:03.389987"], ["updated_at", "2015-02-17 13:45:03.389987"]]
40232
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40233
+  (0.0ms) SAVEPOINT active_record_1
40234
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:45:03.392317"], ["updated_at", "2015-02-17 13:45:03.392317"]]
40235
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40236
+ Rendered notifications_mailer/notify_new_message.html.erb (0.1ms)
40237
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
40238
+
40239
+ NotificationsMailer#send_mail_by: processed outbound mail in 1.9ms
40240
+
40241
+ Sent mail to user8@sleede.com (1.9ms)
40242
+ Date: Tue, 17 Feb 2015 14:45:03 +0100
40243
+ From: contact@sleede.com
40244
+ To: user8@sleede.com
40245
+ Message-ID: <54e345df60d0d_82f23fc58cc65bec893c3@pc12.home.mail>
40246
+ Subject: subject notify new message
40247
+ Mime-Version: 1.0
40248
+ Content-Type: text/html;
40249
+ charset=UTF-8
40250
+ Content-Transfer-Encoding: 7bit
40251
+
40252
+ <p>user8</p>
40253
+ <p>message body</p>
40254
+
40255
+  (0.7ms) rollback transaction
40256
+  (0.1ms) begin transaction
40257
+  (0.0ms) SAVEPOINT active_record_1
40258
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-02-17 13:45:03.400578"], ["updated_at", "2015-02-17 13:45:03.400578"]]
40259
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40260
+  (0.1ms) SAVEPOINT active_record_1
40261
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:45:03.402422"], ["updated_at", "2015-02-17 13:45:03.402422"]]
40262
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40263
+  (0.0ms) SAVEPOINT active_record_1
40264
+ 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-02-17 13:45:03.404996"], ["updated_at", "2015-02-17 13:45:03.404996"]]
40265
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40266
+ Rendered notifications_mailer/notify_new_message.html.erb (0.1ms)
40267
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
40268
+
40269
+ NotificationsMailer#send_mail_by: processed outbound mail in 2.7ms
40270
+
40271
+ Sent mail to user9@sleede.com (3.5ms)
40272
+ Date: Tue, 17 Feb 2015 14:45:03 +0100
40273
+ From: contact@sleede.com
40274
+ To: user9@sleede.com
40275
+ Message-ID: <54e345df6478f_82f23fc58cc65bec89451@pc12.home.mail>
40276
+ Subject: subject notify new message
40277
+ Mime-Version: 1.0
40278
+ Content-Type: text/html;
40279
+ charset=UTF-8
40280
+ Content-Transfer-Encoding: 7bit
40281
+
40282
+ <p>user9</p>
40283
+ <p>message body</p>
40284
+
40285
+  (0.7ms) rollback transaction
40286
+  (0.1ms) begin transaction
40287
+  (0.1ms) SAVEPOINT active_record_1
40288
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-02-17 13:45:03.416825"], ["updated_at", "2015-02-17 13:45:03.416825"]]
40289
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40290
+  (0.1ms) SAVEPOINT active_record_1
40291
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:45:03.418762"], ["updated_at", "2015-02-17 13:45:03.418762"]]
40292
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40293
+  (0.0ms) SAVEPOINT active_record_1
40294
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:45:03.420483"], ["updated_at", "2015-02-17 13:45:03.420483"]]
40295
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40296
+ Rendered notifications_mailer/notify_new_message.html.erb (0.0ms)
40297
+ SQL (0.0ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
40298
+
40299
+ NotificationsMailer#send_mail_by: processed outbound mail in 1.4ms
40300
+
40301
+ Sent mail to user10@sleede.com (8.7ms)
40302
+ Date: Tue, 17 Feb 2015 14:45:03 +0100
40303
+ From: contact@sleede.com
40304
+ To: user10@sleede.com
40305
+ Message-ID: <54e345df67718_82f23fc58cc65bec89540@pc12.home.mail>
40306
+ Subject: subject notify new message
40307
+ Mime-Version: 1.0
40308
+ Content-Type: text/html;
40309
+ charset=UTF-8
40310
+ Content-Transfer-Encoding: 7bit
40311
+
40312
+ <p>user10</p>
40313
+ <p>message body</p>
40314
+
40315
+  (0.7ms) rollback transaction
40316
+  (0.1ms) begin transaction
40317
+  (0.0ms) SAVEPOINT active_record_1
40318
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:45:03.434302"], ["updated_at", "2015-02-17 13:45:03.434302"]]
40319
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40320
+  (0.0ms) SAVEPOINT active_record_1
40321
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-02-17 13:45:03.436052"], ["updated_at", "2015-02-17 13:45:03.436052"]]
40322
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40323
+  (0.0ms) SAVEPOINT active_record_1
40324
+ 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-02-17 13:45:03.438107"], ["updated_at", "2015-02-17 13:45:03.438107"]]
40325
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40326
+  (0.7ms) rollback transaction
40327
+  (0.0ms) begin transaction
40328
+  (0.0ms) SAVEPOINT active_record_1
40329
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:45:03.440979"], ["updated_at", "2015-02-17 13:45:03.440979"]]
40330
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40331
+  (0.0ms) SAVEPOINT active_record_1
40332
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-02-17 13:45:03.442527"], ["updated_at", "2015-02-17 13:45:03.442527"]]
40333
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40334
+  (0.7ms) rollback transaction
40335
+  (0.1ms) begin transaction
40336
+  (0.0ms) SAVEPOINT active_record_1
40337
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:45:03.449254"], ["updated_at", "2015-02-17 13:45:03.449254"]]
40338
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40339
+  (0.0ms) SAVEPOINT active_record_1
40340
+ SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-02-17 13:45:03.451306"], ["updated_at", "2015-02-17 13:45:03.451306"]]
40341
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40342
+  (0.7ms) rollback transaction
40343
+  (0.1ms) begin transaction
40344
+  (0.1ms) SAVEPOINT active_record_1
40345
+ SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:45:03.457363"], ["updated_at", "2015-02-17 13:45:03.457363"]]
40346
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40347
+  (0.1ms) SAVEPOINT active_record_1
40348
+ SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-02-17 13:45:03.461782"], ["updated_at", "2015-02-17 13:45:03.461782"]]
40349
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40350
+  (0.9ms) rollback transaction
40351
+  (0.1ms) begin transaction
40352
+  (0.1ms) SAVEPOINT active_record_1
40353
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:45:03.469820"], ["updated_at", "2015-02-17 13:45:03.469820"]]
40354
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40355
+  (0.0ms) SAVEPOINT active_record_1
40356
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-02-17 13:45:03.471737"], ["updated_at", "2015-02-17 13:45:03.471737"]]
40357
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40358
+  (0.0ms) SAVEPOINT active_record_1
40359
+ 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-02-17 13:45:03.474278"], ["updated_at", "2015-02-17 13:45:03.474278"]]
40360
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40361
+ SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]
40362
+  (0.7ms) rollback transaction
40363
+  (0.1ms) begin transaction
40364
+  (0.1ms) SAVEPOINT active_record_1
40365
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:45:03.478632"], ["updated_at", "2015-02-17 13:45:03.478632"]]
40366
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40367
+  (0.1ms) SAVEPOINT active_record_1
40368
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-02-17 13:45:03.480387"], ["updated_at", "2015-02-17 13:45:03.480387"]]
40369
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40370
+  (0.0ms) SAVEPOINT active_record_1
40371
+ 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-02-17 13:45:03.482368"], ["updated_at", "2015-02-17 13:45:03.482368"]]
40372
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40373
+ Rendered notifications_mailer/notify_new_message.html.erb (0.1ms)
40374
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
40375
+
40376
+ NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms
40377
+
40378
+ Sent mail to user16@sleede.com (1.5ms)
40379
+ Date: Tue, 17 Feb 2015 14:45:03 +0100
40380
+ From: contact@sleede.com
40381
+ To: user16@sleede.com
40382
+ Message-ID: <54e345df76939_82f23fc58cc65bec8969f@pc12.home.mail>
40383
+ Subject: subject notify new message
40384
+ Mime-Version: 1.0
40385
+ Content-Type: text/html;
40386
+ charset=UTF-8
40387
+ Content-Transfer-Encoding: 7bit
40388
+
40389
+ <p>user16</p>
40390
+ <p>message body</p>
40391
+
40392
+  (0.8ms) rollback transaction
40393
+  (0.0ms) begin transaction
40394
+  (0.0ms) SAVEPOINT active_record_1
40395
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:45:03.489870"], ["updated_at", "2015-02-17 13:45:03.489870"]]
40396
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40397
+  (0.0ms) SAVEPOINT active_record_1
40398
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-02-17 13:45:03.491989"], ["updated_at", "2015-02-17 13:45:03.491989"]]
40399
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40400
+  (0.0ms) SAVEPOINT active_record_1
40401
+ 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-02-17 13:45:03.494117"], ["updated_at", "2015-02-17 13:45:03.494117"]]
40402
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40403
+ [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 3f916bef-05b5-4fd2-9969-24fb001f4a94) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Notification/1
40404
+ [ActiveJob] Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]
40405
+ [ActiveJob] [ActionMailer::DeliveryJob] [3f916bef-05b5-4fd2-9969-24fb001f4a94] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Notification/1
40406
+ [ActiveJob] [ActionMailer::DeliveryJob] [3f916bef-05b5-4fd2-9969-24fb001f4a94] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
40407
+ [ActiveJob] [ActionMailer::DeliveryJob] [3f916bef-05b5-4fd2-9969-24fb001f4a94] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
40408
+ [ActiveJob] [ActionMailer::DeliveryJob] [3f916bef-05b5-4fd2-9969-24fb001f4a94] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms)
40409
+ [ActiveJob] [ActionMailer::DeliveryJob] [3f916bef-05b5-4fd2-9969-24fb001f4a94] SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
40410
+ [ActiveJob] [ActionMailer::DeliveryJob] [3f916bef-05b5-4fd2-9969-24fb001f4a94]
40411
+ NotificationsMailer#send_mail_by: processed outbound mail in 5.4ms
40412
+ [ActiveJob] [ActionMailer::DeliveryJob] [3f916bef-05b5-4fd2-9969-24fb001f4a94]
40413
+ Sent mail to user17@sleede.com (2.5ms)
40414
+ [ActiveJob] [ActionMailer::DeliveryJob] [3f916bef-05b5-4fd2-9969-24fb001f4a94] Date: Tue, 17 Feb 2015 14:45:03 +0100
40415
+ From: contact@sleede.com
40416
+ To: user17@sleede.com
40417
+ Message-ID: <54e345df7fd4f_82f23fc58cc65bec8976d@pc12.home.mail>
40418
+ Subject: subject notify new message
40419
+ Mime-Version: 1.0
40420
+ Content-Type: text/html;
40421
+ charset=UTF-8
40422
+ Content-Transfer-Encoding: 7bit
40423
+
40424
+ <p>user17</p>
40425
+ <p>message body</p>
40426
+
40427
+ [ActiveJob] [ActionMailer::DeliveryJob] [3f916bef-05b5-4fd2-9969-24fb001f4a94] Performed ActionMailer::DeliveryJob from Inline(mailers) in 8.39ms
40428
+  (1.1ms) rollback transaction
40429
+  (0.1ms) begin transaction
40430
+  (0.1ms) SAVEPOINT active_record_1
40431
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:45:03.529948"], ["updated_at", "2015-02-17 13:45:03.529948"]]
40432
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40433
+  (0.0ms) SAVEPOINT active_record_1
40434
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-02-17 13:45:03.532052"], ["updated_at", "2015-02-17 13:45:03.532052"]]
40435
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40436
+  (0.7ms) rollback transaction
40437
+  (0.1ms) begin transaction
40438
+  (0.1ms) SAVEPOINT active_record_1
40439
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:45:03.537180"], ["updated_at", "2015-02-17 13:45:03.537180"]]
40440
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40441
+  (0.0ms) SAVEPOINT active_record_1
40442
+ SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-02-17 13:45:03.539007"], ["updated_at", "2015-02-17 13:45:03.539007"]]
40443
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40444
+  (0.6ms) rollback transaction
40445
+  (0.1ms) begin transaction
40446
+  (0.1ms) SAVEPOINT active_record_1
40447
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:45:03.545392"], ["updated_at", "2015-02-17 13:45:03.545392"]]
40448
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40449
+  (0.1ms) SAVEPOINT active_record_1
40450
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-02-17 13:45:03.548778"], ["updated_at", "2015-02-17 13:45:03.548778"]]
40451
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40452
+  (0.6ms) rollback transaction
40453
+  (0.0ms) begin transaction
40454
+  (0.0ms) SAVEPOINT active_record_1
40455
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:45:03.552681"], ["updated_at", "2015-02-17 13:45:03.552681"]]
40456
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40457
+  (0.0ms) SAVEPOINT active_record_1
40458
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-02-17 13:45:03.554432"], ["updated_at", "2015-02-17 13:45:03.554432"]]
40459
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40460
+  (0.2ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
40461
+  (0.0ms) SAVEPOINT active_record_1
40462
+ 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-02-17 13:45:03.562695"], ["updated_at", "2015-02-17 13:45:03.562695"]]
40463
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40464
+  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
40465
+  (0.6ms) rollback transaction
40466
+  (0.1ms) begin transaction
40467
+  (0.0ms) SAVEPOINT active_record_1
40468
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:45:03.566788"], ["updated_at", "2015-02-17 13:45:03.566788"]]
40469
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40470
+  (0.0ms) SAVEPOINT active_record_1
40471
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-02-17 13:45:03.568552"], ["updated_at", "2015-02-17 13:45:03.568552"]]
40472
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40473
+  (0.1ms) SAVEPOINT active_record_1
40474
+ 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-02-17 13:45:03.572323"], ["updated_at", "2015-02-17 13:45:03.572323"]]
40475
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40476
+  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
40477
+  (0.0ms) SAVEPOINT active_record_1
40478
+ SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]
40479
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
40480
+  (0.6ms) rollback transaction
40481
+  (0.1ms) begin transaction
40482
+  (0.0ms) rollback transaction
40483
+  (0.0ms) begin transaction
40484
+  (0.0ms) rollback transaction
40485
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
40486
+  (9.1ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
40487
+  (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)
40488
+  (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) 
40489
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
40490
+  (0.1ms) select sqlite_version(*)
40491
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
40492
+  (0.1ms) SELECT version FROM "schema_migrations"
40493
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
40494
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
40495
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
40496
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
40497
+  (0.1ms) begin transaction
40498
+  (0.0ms) SAVEPOINT active_record_1
40499
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-02-17 13:47:08.791574"], ["updated_at", "2015-02-17 13:47:08.791574"]]
40500
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40501
+  (0.1ms) SAVEPOINT active_record_1
40502
+ SQL (1.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:47:08.806643"], ["updated_at", "2015-02-17 13:47:08.806643"]]
40503
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40504
+  (0.1ms) SAVEPOINT active_record_1
40505
+ 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-02-17 13:47:08.810339"], ["updated_at", "2015-02-17 13:47:08.810339"]]
40506
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40507
+ Processing by API::NotificationsController#index as JSON
40508
+ Rendered api/notifications/index.json.jbuilder (0.3ms)
40509
+ Completed 200 OK in 18ms (Views: 9.1ms | ActiveRecord: 0.0ms)
40510
+  (0.7ms) rollback transaction
40511
+  (0.2ms) begin transaction
40512
+  (0.0ms) SAVEPOINT active_record_1
40513
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-02-17 13:47:08.847692"], ["updated_at", "2015-02-17 13:47:08.847692"]]
40514
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40515
+  (0.0ms) SAVEPOINT active_record_1
40516
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:47:08.849801"], ["updated_at", "2015-02-17 13:47:08.849801"]]
40517
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40518
+  (0.0ms) SAVEPOINT active_record_1
40519
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:47:08.851495"], ["updated_at", "2015-02-17 13:47:08.851495"]]
40520
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40521
+ Processing by API::NotificationsController#index as JSON
40522
+ Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
40523
+ Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
40524
+ Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms)
40525
+ Rendered api/notifications/index.json.jbuilder (12.3ms)
40526
+ Completed 200 OK in 14ms (Views: 12.5ms | ActiveRecord: 0.2ms)
40527
+  (0.6ms) rollback transaction
40528
+  (0.1ms) begin transaction
40529
+  (0.0ms) SAVEPOINT active_record_1
40530
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-02-17 13:47:08.875069"], ["updated_at", "2015-02-17 13:47:08.875069"]]
40531
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40532
+  (0.1ms) SAVEPOINT active_record_1
40533
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:47:08.876987"], ["updated_at", "2015-02-17 13:47:08.876987"]]
40534
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40535
+  (0.0ms) SAVEPOINT active_record_1
40536
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:47:08.878631"], ["updated_at", "2015-02-17 13:47:08.878631"]]
40537
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40538
+ Processing by API::NotificationsController#show as JSON
40539
+ Parameters: {"id"=>"1"}
40540
+ 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]]
40541
+ Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
40542
+ Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms)
40543
+ Rendered api/notifications/show.json.jbuilder (2.0ms)
40544
+ Completed 200 OK in 9ms (Views: 3.1ms | ActiveRecord: 0.2ms)
40545
+  (0.7ms) rollback transaction
40546
+  (0.0ms) begin transaction
40547
+  (0.0ms) SAVEPOINT active_record_1
40548
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-02-17 13:47:08.896178"], ["updated_at", "2015-02-17 13:47:08.896178"]]
40549
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40550
+  (0.0ms) SAVEPOINT active_record_1
40551
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:47:08.898173"], ["updated_at", "2015-02-17 13:47:08.898173"]]
40552
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40553
+  (0.0ms) SAVEPOINT active_record_1
40554
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:47:08.900098"], ["updated_at", "2015-02-17 13:47:08.900098"]]
40555
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40556
+ Processing by API::NotificationsController#update as JSON
40557
+ Parameters: {"id"=>"1"}
40558
+ 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]]
40559
+ SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]
40560
+ Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
40561
+ Rendered api/notifications/_notify_new_message.json.jbuilder (0.0ms)
40562
+ Rendered api/notifications/show.json.jbuilder (1.2ms)
40563
+ Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.2ms)
40564
+  (0.9ms) rollback transaction
40565
+  (0.1ms) begin transaction
40566
+  (0.1ms) SAVEPOINT active_record_1
40567
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-02-17 13:47:08.922172"], ["updated_at", "2015-02-17 13:47:08.922172"]]
40568
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40569
+  (0.1ms) SAVEPOINT active_record_1
40570
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:47:08.924222"], ["updated_at", "2015-02-17 13:47:08.924222"]]
40571
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40572
+  (0.1ms) SAVEPOINT active_record_1
40573
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:47:08.926072"], ["updated_at", "2015-02-17 13:47:08.926072"]]
40574
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40575
+ Processing by API::NotificationsController#update_all as JSON
40576
+ Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = 'f' ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"]]
40577
+ SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]
40578
+ Completed 204 No Content in 3ms (ActiveRecord: 0.2ms)
40579
+ Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]
40580
+  (0.7ms) rollback transaction
40581
+  (0.1ms) begin transaction
40582
+  (0.1ms) SAVEPOINT active_record_1
40583
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-02-17 13:47:09.102155"], ["updated_at", "2015-02-17 13:47:09.102155"]]
40584
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40585
+  (0.0ms) SAVEPOINT active_record_1
40586
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:47:09.104120"], ["updated_at", "2015-02-17 13:47:09.104120"]]
40587
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40588
+  (0.0ms) SAVEPOINT active_record_1
40589
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:47:09.105862"], ["updated_at", "2015-02-17 13:47:09.105862"]]
40590
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40591
+  (0.7ms) rollback transaction
40592
+  (0.1ms) begin transaction
40593
+  (0.0ms) SAVEPOINT active_record_1
40594
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-02-17 13:47:09.111253"], ["updated_at", "2015-02-17 13:47:09.111253"]]
40595
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40596
+  (0.0ms) SAVEPOINT active_record_1
40597
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:47:09.113241"], ["updated_at", "2015-02-17 13:47:09.113241"]]
40598
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40599
+  (0.0ms) SAVEPOINT active_record_1
40600
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:47:09.115206"], ["updated_at", "2015-02-17 13:47:09.115206"]]
40601
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40602
+ Rendered notifications_mailer/notify_new_message.html.erb (1.5ms)
40603
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
40604
+
40605
+ NotificationsMailer#send_mail_by: processed outbound mail in 14.4ms
40606
+
40607
+ Sent mail to user7@sleede.com (6.8ms)
40608
+ Date: Tue, 17 Feb 2015 14:47:09 +0100
40609
+ From: contact@sleede.com
40610
+ To: user7@sleede.com
40611
+ Message-ID: <54e3465d21485_842c3fd468c55be4608c6@pc12.home.mail>
40612
+ Subject: subject notify new message
40613
+ Mime-Version: 1.0
40614
+ Content-Type: text/html;
40615
+ charset=UTF-8
40616
+ Content-Transfer-Encoding: 7bit
40617
+
40618
+ <p>user7</p>
40619
+ <p>message body</p>
40620
+
40621
+  (0.6ms) rollback transaction
40622
+  (0.1ms) begin transaction
40623
+  (0.1ms) SAVEPOINT active_record_1
40624
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-02-17 13:47:09.142124"], ["updated_at", "2015-02-17 13:47:09.142124"]]
40625
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40626
+  (0.0ms) SAVEPOINT active_record_1
40627
+ SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:47:09.144097"], ["updated_at", "2015-02-17 13:47:09.144097"]]
40628
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40629
+  (0.1ms) SAVEPOINT active_record_1
40630
+ 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-02-17 13:47:09.148705"], ["updated_at", "2015-02-17 13:47:09.148705"]]
40631
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40632
+ Rendered notifications_mailer/notify_new_message.html.erb (0.1ms)
40633
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
40634
+
40635
+ NotificationsMailer#send_mail_by: processed outbound mail in 2.6ms
40636
+
40637
+ Sent mail to user8@sleede.com (3.1ms)
40638
+ Date: Tue, 17 Feb 2015 14:47:09 +0100
40639
+ From: contact@sleede.com
40640
+ To: user8@sleede.com
40641
+ Message-ID: <54e3465d25e59_842c3fd468c55be4609b8@pc12.home.mail>
40642
+ Subject: subject notify new message
40643
+ Mime-Version: 1.0
40644
+ Content-Type: text/html;
40645
+ charset=UTF-8
40646
+ Content-Transfer-Encoding: 7bit
40647
+
40648
+ <p>user8</p>
40649
+ <p>message body</p>
40650
+
40651
+  (0.7ms) rollback transaction
40652
+  (0.1ms) begin transaction
40653
+  (0.1ms) SAVEPOINT active_record_1
40654
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-02-17 13:47:09.160588"], ["updated_at", "2015-02-17 13:47:09.160588"]]
40655
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40656
+  (0.0ms) SAVEPOINT active_record_1
40657
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:47:09.162458"], ["updated_at", "2015-02-17 13:47:09.162458"]]
40658
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40659
+  (0.0ms) SAVEPOINT active_record_1
40660
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:47:09.164230"], ["updated_at", "2015-02-17 13:47:09.164230"]]
40661
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40662
+ Rendered notifications_mailer/notify_new_message.html.erb (0.0ms)
40663
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
40664
+
40665
+ NotificationsMailer#send_mail_by: processed outbound mail in 1.4ms
40666
+
40667
+ Sent mail to user9@sleede.com (1.4ms)
40668
+ Date: Tue, 17 Feb 2015 14:47:09 +0100
40669
+ From: contact@sleede.com
40670
+ To: user9@sleede.com
40671
+ Message-ID: <54e3465d28ec8_842c3fd468c55be461050@pc12.home.mail>
40672
+ Subject: subject notify new message
40673
+ Mime-Version: 1.0
40674
+ Content-Type: text/html;
40675
+ charset=UTF-8
40676
+ Content-Transfer-Encoding: 7bit
40677
+
40678
+ <p>user9</p>
40679
+ <p>message body</p>
40680
+
40681
+  (0.7ms) rollback transaction
40682
+  (0.1ms) begin transaction
40683
+  (0.1ms) SAVEPOINT active_record_1
40684
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-02-17 13:47:09.171397"], ["updated_at", "2015-02-17 13:47:09.171397"]]
40685
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40686
+  (0.0ms) SAVEPOINT active_record_1
40687
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:47:09.173262"], ["updated_at", "2015-02-17 13:47:09.173262"]]
40688
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40689
+  (0.0ms) SAVEPOINT active_record_1
40690
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:47:09.175068"], ["updated_at", "2015-02-17 13:47:09.175068"]]
40691
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40692
+ Rendered notifications_mailer/notify_new_message.html.erb (0.0ms)
40693
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
40694
+
40695
+ NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms
40696
+
40697
+ Sent mail to user10@sleede.com (9.2ms)
40698
+ Date: Tue, 17 Feb 2015 14:47:09 +0100
40699
+ From: contact@sleede.com
40700
+ To: user10@sleede.com
40701
+ Message-ID: <54e3465d2ba57_842c3fd468c55be4611a8@pc12.home.mail>
40702
+ Subject: subject notify new message
40703
+ Mime-Version: 1.0
40704
+ Content-Type: text/html;
40705
+ charset=UTF-8
40706
+ Content-Transfer-Encoding: 7bit
40707
+
40708
+ <p>user10</p>
40709
+ <p>message body</p>
40710
+
40711
+  (0.6ms) rollback transaction
40712
+  (0.1ms) begin transaction
40713
+  (0.0ms) SAVEPOINT active_record_1
40714
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:47:09.189303"], ["updated_at", "2015-02-17 13:47:09.189303"]]
40715
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40716
+  (0.0ms) SAVEPOINT active_record_1
40717
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-02-17 13:47:09.190964"], ["updated_at", "2015-02-17 13:47:09.190964"]]
40718
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40719
+  (0.1ms) SAVEPOINT active_record_1
40720
+ 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-02-17 13:47:09.193067"], ["updated_at", "2015-02-17 13:47:09.193067"]]
40721
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40722
+  (0.6ms) rollback transaction
40723
+  (0.1ms) begin transaction
40724
+  (0.1ms) SAVEPOINT active_record_1
40725
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:47:09.198441"], ["updated_at", "2015-02-17 13:47:09.198441"]]
40726
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40727
+  (0.1ms) SAVEPOINT active_record_1
40728
+ SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-02-17 13:47:09.201518"], ["updated_at", "2015-02-17 13:47:09.201518"]]
40729
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40730
+  (0.6ms) rollback transaction
40731
+  (0.1ms) begin transaction
40732
+  (0.0ms) SAVEPOINT active_record_1
40733
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:47:09.208754"], ["updated_at", "2015-02-17 13:47:09.208754"]]
40734
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40735
+  (0.0ms) SAVEPOINT active_record_1
40736
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-02-17 13:47:09.210384"], ["updated_at", "2015-02-17 13:47:09.210384"]]
40737
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40738
+  (0.6ms) rollback transaction
40739
+  (0.1ms) begin transaction
40740
+  (0.1ms) SAVEPOINT active_record_1
40741
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:47:09.215842"], ["updated_at", "2015-02-17 13:47:09.215842"]]
40742
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40743
+  (0.0ms) SAVEPOINT active_record_1
40744
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-02-17 13:47:09.217503"], ["updated_at", "2015-02-17 13:47:09.217503"]]
40745
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40746
+  (0.5ms) rollback transaction
40747
+  (0.0ms) begin transaction
40748
+  (0.0ms) SAVEPOINT active_record_1
40749
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:47:09.221675"], ["updated_at", "2015-02-17 13:47:09.221675"]]
40750
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40751
+  (0.1ms) SAVEPOINT active_record_1
40752
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-02-17 13:47:09.223881"], ["updated_at", "2015-02-17 13:47:09.223881"]]
40753
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40754
+  (0.1ms) SAVEPOINT active_record_1
40755
+ 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-02-17 13:47:09.226670"], ["updated_at", "2015-02-17 13:47:09.226670"]]
40756
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40757
+ SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]
40758
+  (0.5ms) rollback transaction
40759
+  (0.1ms) begin transaction
40760
+  (0.0ms) SAVEPOINT active_record_1
40761
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:47:09.230282"], ["updated_at", "2015-02-17 13:47:09.230282"]]
40762
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40763
+  (0.1ms) SAVEPOINT active_record_1
40764
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-02-17 13:47:09.231858"], ["updated_at", "2015-02-17 13:47:09.231858"]]
40765
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40766
+  (0.0ms) SAVEPOINT active_record_1
40767
+ 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-02-17 13:47:09.234286"], ["updated_at", "2015-02-17 13:47:09.234286"]]
40768
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40769
+ Rendered notifications_mailer/notify_new_message.html.erb (0.1ms)
40770
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
40771
+
40772
+ NotificationsMailer#send_mail_by: processed outbound mail in 2.1ms
40773
+
40774
+ Sent mail to user16@sleede.com (1.5ms)
40775
+ Date: Tue, 17 Feb 2015 14:47:09 +0100
40776
+ From: contact@sleede.com
40777
+ To: user16@sleede.com
40778
+ Message-ID: <54e3465d3a2fe_842c3fd468c55be46129c@pc12.home.mail>
40779
+ Subject: subject notify new message
40780
+ Mime-Version: 1.0
40781
+ Content-Type: text/html;
40782
+ charset=UTF-8
40783
+ Content-Transfer-Encoding: 7bit
40784
+
40785
+ <p>user16</p>
40786
+ <p>message body</p>
40787
+
40788
+  (1.7ms) rollback transaction
40789
+  (0.1ms) begin transaction
40790
+  (0.1ms) SAVEPOINT active_record_1
40791
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:47:09.243914"], ["updated_at", "2015-02-17 13:47:09.243914"]]
40792
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40793
+  (0.1ms) SAVEPOINT active_record_1
40794
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-02-17 13:47:09.246808"], ["updated_at", "2015-02-17 13:47:09.246808"]]
40795
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40796
+  (0.1ms) SAVEPOINT active_record_1
40797
+ 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-02-17 13:47:09.250894"], ["updated_at", "2015-02-17 13:47:09.250894"]]
40798
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40799
+ [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 6f2ac294-9868-4e5f-923c-54efc397058a) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Notification/1
40800
+ [ActiveJob] Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]
40801
+ [ActiveJob] [ActionMailer::DeliveryJob] [6f2ac294-9868-4e5f-923c-54efc397058a] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Notification/1
40802
+ [ActiveJob] [ActionMailer::DeliveryJob] [6f2ac294-9868-4e5f-923c-54efc397058a] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
40803
+ [ActiveJob] [ActionMailer::DeliveryJob] [6f2ac294-9868-4e5f-923c-54efc397058a] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
40804
+ [ActiveJob] [ActionMailer::DeliveryJob] [6f2ac294-9868-4e5f-923c-54efc397058a] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms)
40805
+ [ActiveJob] [ActionMailer::DeliveryJob] [6f2ac294-9868-4e5f-923c-54efc397058a] SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
40806
+ [ActiveJob] [ActionMailer::DeliveryJob] [6f2ac294-9868-4e5f-923c-54efc397058a]
40807
+ NotificationsMailer#send_mail_by: processed outbound mail in 3.7ms
40808
+ [ActiveJob] [ActionMailer::DeliveryJob] [6f2ac294-9868-4e5f-923c-54efc397058a]
40809
+ Sent mail to user17@sleede.com (1.5ms)
40810
+ [ActiveJob] [ActionMailer::DeliveryJob] [6f2ac294-9868-4e5f-923c-54efc397058a] Date: Tue, 17 Feb 2015 14:47:09 +0100
40811
+ From: contact@sleede.com
40812
+ To: user17@sleede.com
40813
+ Message-ID: <54e3465d42c5b_842c3fd468c55be461338@pc12.home.mail>
40814
+ Subject: subject notify new message
40815
+ Mime-Version: 1.0
40816
+ Content-Type: text/html;
40817
+ charset=UTF-8
40818
+ Content-Transfer-Encoding: 7bit
40819
+
40820
+ <p>user17</p>
40821
+ <p>message body</p>
40822
+
40823
+ [ActiveJob] [ActionMailer::DeliveryJob] [6f2ac294-9868-4e5f-923c-54efc397058a] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.61ms
40824
+  (0.6ms) rollback transaction
40825
+  (0.1ms) begin transaction
40826
+  (0.0ms) SAVEPOINT active_record_1
40827
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:47:09.276802"], ["updated_at", "2015-02-17 13:47:09.276802"]]
40828
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40829
+  (0.0ms) SAVEPOINT active_record_1
40830
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-02-17 13:47:09.278961"], ["updated_at", "2015-02-17 13:47:09.278961"]]
40831
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40832
+  (0.5ms) rollback transaction
40833
+  (0.1ms) begin transaction
40834
+  (0.0ms) SAVEPOINT active_record_1
40835
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:47:09.282351"], ["updated_at", "2015-02-17 13:47:09.282351"]]
40836
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40837
+  (0.0ms) SAVEPOINT active_record_1
40838
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-02-17 13:47:09.284171"], ["updated_at", "2015-02-17 13:47:09.284171"]]
40839
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40840
+  (0.8ms) rollback transaction
40841
+  (0.1ms) begin transaction
40842
+  (0.0ms) SAVEPOINT active_record_1
40843
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:47:09.289278"], ["updated_at", "2015-02-17 13:47:09.289278"]]
40844
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40845
+  (0.0ms) SAVEPOINT active_record_1
40846
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-02-17 13:47:09.292239"], ["updated_at", "2015-02-17 13:47:09.292239"]]
40847
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40848
+  (0.6ms) rollback transaction
40849
+  (0.1ms) begin transaction
40850
+  (0.0ms) SAVEPOINT active_record_1
40851
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:47:09.296316"], ["updated_at", "2015-02-17 13:47:09.296316"]]
40852
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40853
+  (0.1ms) SAVEPOINT active_record_1
40854
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-02-17 13:47:09.298563"], ["updated_at", "2015-02-17 13:47:09.298563"]]
40855
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40856
+  (0.3ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
40857
+  (0.0ms) SAVEPOINT active_record_1
40858
+ 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-02-17 13:47:09.305035"], ["updated_at", "2015-02-17 13:47:09.305035"]]
40859
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40860
+  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
40861
+  (0.5ms) rollback transaction
40862
+  (0.0ms) begin transaction
40863
+  (0.1ms) SAVEPOINT active_record_1
40864
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:47:09.311898"], ["updated_at", "2015-02-17 13:47:09.311898"]]
40865
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40866
+  (0.1ms) SAVEPOINT active_record_1
40867
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-02-17 13:47:09.315065"], ["updated_at", "2015-02-17 13:47:09.315065"]]
40868
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40869
+  (0.4ms) SAVEPOINT active_record_1
40870
+ 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-02-17 13:47:09.321015"], ["updated_at", "2015-02-17 13:47:09.321015"]]
40871
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40872
+  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
40873
+  (0.1ms) SAVEPOINT active_record_1
40874
+ SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]
40875
+ Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')
40876
+ SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]
40877
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40878
+  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
40879
+  (0.6ms) rollback transaction
40880
+  (0.1ms) begin transaction
40881
+  (0.0ms) rollback transaction
40882
+  (0.0ms) begin transaction
40883
+  (0.0ms) rollback transaction
40884
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
40885
+  (1.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
40886
+  (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)
40887
+  (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) 
40888
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
40889
+  (0.1ms) select sqlite_version(*)
40890
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
40891
+  (0.1ms) SELECT version FROM "schema_migrations"
40892
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
40893
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
40894
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
40895
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
40896
+  (0.2ms) begin transaction
40897
+  (0.1ms) SAVEPOINT active_record_1
40898
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-02-17 13:56:20.097603"], ["updated_at", "2015-02-17 13:56:20.097603"]]
40899
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40900
+  (0.1ms) SAVEPOINT active_record_1
40901
+ SQL (2.8ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:20.117683"], ["updated_at", "2015-02-17 13:56:20.117683"]]
40902
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40903
+  (0.1ms) SAVEPOINT active_record_1
40904
+ 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-02-17 13:56:20.125428"], ["updated_at", "2015-02-17 13:56:20.125428"]]
40905
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40906
+ Processing by API::NotificationsController#index as JSON
40907
+ Rendered api/notifications/index.json.jbuilder (0.3ms)
40908
+ Completed 200 OK in 22ms (Views: 10.0ms | ActiveRecord: 0.0ms)
40909
+  (0.5ms) rollback transaction
40910
+  (0.0ms) begin transaction
40911
+  (0.0ms) SAVEPOINT active_record_1
40912
+ SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-02-17 13:56:20.173865"], ["updated_at", "2015-02-17 13:56:20.173865"]]
40913
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40914
+  (0.1ms) SAVEPOINT active_record_1
40915
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:20.178481"], ["updated_at", "2015-02-17 13:56:20.178481"]]
40916
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40917
+  (0.0ms) SAVEPOINT active_record_1
40918
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:56:20.180727"], ["updated_at", "2015-02-17 13:56:20.180727"]]
40919
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40920
+ Processing by API::NotificationsController#index as JSON
40921
+ Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
40922
+ Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
40923
+ Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms)
40924
+ Rendered api/notifications/index.json.jbuilder (14.4ms)
40925
+ Completed 200 OK in 16ms (Views: 14.6ms | ActiveRecord: 0.3ms)
40926
+  (0.7ms) rollback transaction
40927
+  (0.1ms) begin transaction
40928
+  (0.0ms) SAVEPOINT active_record_1
40929
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-02-17 13:56:20.206999"], ["updated_at", "2015-02-17 13:56:20.206999"]]
40930
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40931
+  (0.0ms) SAVEPOINT active_record_1
40932
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:20.209190"], ["updated_at", "2015-02-17 13:56:20.209190"]]
40933
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40934
+  (0.0ms) SAVEPOINT active_record_1
40935
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:56:20.211126"], ["updated_at", "2015-02-17 13:56:20.211126"]]
40936
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40937
+ Processing by API::NotificationsController#show as JSON
40938
+ Parameters: {"id"=>"1"}
40939
+ 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]]
40940
+ Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
40941
+ Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms)
40942
+ Rendered api/notifications/show.json.jbuilder (2.0ms)
40943
+ Completed 200 OK in 8ms (Views: 3.1ms | ActiveRecord: 0.2ms)
40944
+  (1.3ms) rollback transaction
40945
+  (0.1ms) begin transaction
40946
+  (0.1ms) SAVEPOINT active_record_1
40947
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-02-17 13:56:20.229441"], ["updated_at", "2015-02-17 13:56:20.229441"]]
40948
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40949
+  (0.2ms) SAVEPOINT active_record_1
40950
+ SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:20.233933"], ["updated_at", "2015-02-17 13:56:20.233933"]]
40951
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40952
+  (0.1ms) SAVEPOINT active_record_1
40953
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:56:20.236967"], ["updated_at", "2015-02-17 13:56:20.236967"]]
40954
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40955
+ Processing by API::NotificationsController#update as JSON
40956
+ Parameters: {"id"=>"1"}
40957
+ 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]]
40958
+ SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]
40959
+ Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
40960
+ Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms)
40961
+ Rendered api/notifications/show.json.jbuilder (1.3ms)
40962
+ Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.2ms)
40963
+  (0.7ms) rollback transaction
40964
+  (0.1ms) begin transaction
40965
+  (0.1ms) SAVEPOINT active_record_1
40966
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-02-17 13:56:20.260209"], ["updated_at", "2015-02-17 13:56:20.260209"]]
40967
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40968
+  (0.1ms) SAVEPOINT active_record_1
40969
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:20.262227"], ["updated_at", "2015-02-17 13:56:20.262227"]]
40970
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40971
+  (0.1ms) SAVEPOINT active_record_1
40972
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:56:20.264084"], ["updated_at", "2015-02-17 13:56:20.264084"]]
40973
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40974
+ Processing by API::NotificationsController#update_all as JSON
40975
+ Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = 'f' ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"]]
40976
+ SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]
40977
+ Completed 204 No Content in 3ms (ActiveRecord: 0.2ms)
40978
+ Notification Load (0.2ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]
40979
+  (0.7ms) rollback transaction
40980
+  (0.1ms) begin transaction
40981
+  (0.1ms) SAVEPOINT active_record_1
40982
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-02-17 13:56:20.443692"], ["updated_at", "2015-02-17 13:56:20.443692"]]
40983
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40984
+  (0.0ms) SAVEPOINT active_record_1
40985
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:20.445920"], ["updated_at", "2015-02-17 13:56:20.445920"]]
40986
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40987
+  (0.1ms) SAVEPOINT active_record_1
40988
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:56:20.448069"], ["updated_at", "2015-02-17 13:56:20.448069"]]
40989
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40990
+  (0.6ms) rollback transaction
40991
+  (0.0ms) begin transaction
40992
+  (0.0ms) SAVEPOINT active_record_1
40993
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-02-17 13:56:20.453709"], ["updated_at", "2015-02-17 13:56:20.453709"]]
40994
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40995
+  (0.0ms) SAVEPOINT active_record_1
40996
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:20.455573"], ["updated_at", "2015-02-17 13:56:20.455573"]]
40997
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40998
+  (0.0ms) SAVEPOINT active_record_1
40999
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:56:20.457605"], ["updated_at", "2015-02-17 13:56:20.457605"]]
41000
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41001
+ Rendered notifications_mailer/notify_new_message.html.erb (1.5ms)
41002
+ SQL (0.2ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
41003
+
41004
+ NotificationsMailer#send_mail_by: processed outbound mail in 14.4ms
41005
+
41006
+ Sent mail to user7@sleede.com (7.0ms)
41007
+ Date: Tue, 17 Feb 2015 14:56:20 +0100
41008
+ From: contact@sleede.com
41009
+ To: user7@sleede.com
41010
+ Message-ID: <54e3488474cbe_89923ff560465bf01227@pc12.home.mail>
41011
+ Subject: subject notify new message
41012
+ Mime-Version: 1.0
41013
+ Content-Type: text/html;
41014
+ charset=UTF-8
41015
+ Content-Transfer-Encoding: 7bit
41016
+
41017
+ <p>user7</p>
41018
+ <p>message body</p>
41019
+
41020
+  (0.6ms) rollback transaction
41021
+  (0.1ms) begin transaction
41022
+  (0.1ms) SAVEPOINT active_record_1
41023
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-02-17 13:56:20.484307"], ["updated_at", "2015-02-17 13:56:20.484307"]]
41024
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41025
+  (0.1ms) SAVEPOINT active_record_1
41026
+ SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:20.487167"], ["updated_at", "2015-02-17 13:56:20.487167"]]
41027
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41028
+  (0.0ms) SAVEPOINT active_record_1
41029
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:56:20.489815"], ["updated_at", "2015-02-17 13:56:20.489815"]]
41030
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41031
+ Rendered notifications_mailer/notify_new_message.html.erb (0.1ms)
41032
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
41033
+
41034
+ NotificationsMailer#send_mail_by: processed outbound mail in 2.1ms
41035
+
41036
+ Sent mail to user8@sleede.com (1.8ms)
41037
+ Date: Tue, 17 Feb 2015 14:56:20 +0100
41038
+ From: contact@sleede.com
41039
+ To: user8@sleede.com
41040
+ Message-ID: <54e3488478976_89923ff560465bf0123fb@pc12.home.mail>
41041
+ Subject: subject notify new message
41042
+ Mime-Version: 1.0
41043
+ Content-Type: text/html;
41044
+ charset=UTF-8
41045
+ Content-Transfer-Encoding: 7bit
41046
+
41047
+ <p>user8</p>
41048
+ <p>message body</p>
41049
+
41050
+  (0.8ms) rollback transaction
41051
+  (0.1ms) begin transaction
41052
+  (0.1ms) SAVEPOINT active_record_1
41053
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-02-17 13:56:20.499622"], ["updated_at", "2015-02-17 13:56:20.499622"]]
41054
+  (0.2ms) RELEASE SAVEPOINT active_record_1
41055
+  (0.1ms) SAVEPOINT active_record_1
41056
+ SQL (0.6ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:20.503093"], ["updated_at", "2015-02-17 13:56:20.503093"]]
41057
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41058
+  (0.0ms) SAVEPOINT active_record_1
41059
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:56:20.505794"], ["updated_at", "2015-02-17 13:56:20.505794"]]
41060
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41061
+ Rendered notifications_mailer/notify_new_message.html.erb (0.1ms)
41062
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
41063
+
41064
+ NotificationsMailer#send_mail_by: processed outbound mail in 1.7ms
41065
+
41066
+ Sent mail to user9@sleede.com (1.5ms)
41067
+ Date: Tue, 17 Feb 2015 14:56:20 +0100
41068
+ From: contact@sleede.com
41069
+ To: user9@sleede.com
41070
+ Message-ID: <54e348847c665_89923ff560465bf0124dc@pc12.home.mail>
41071
+ Subject: subject notify new message
41072
+ Mime-Version: 1.0
41073
+ Content-Type: text/html;
41074
+ charset=UTF-8
41075
+ Content-Transfer-Encoding: 7bit
41076
+
41077
+ <p>user9</p>
41078
+ <p>message body</p>
41079
+
41080
+  (0.7ms) rollback transaction
41081
+  (0.1ms) begin transaction
41082
+  (0.0ms) SAVEPOINT active_record_1
41083
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-02-17 13:56:20.513328"], ["updated_at", "2015-02-17 13:56:20.513328"]]
41084
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41085
+  (0.0ms) SAVEPOINT active_record_1
41086
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:20.515281"], ["updated_at", "2015-02-17 13:56:20.515281"]]
41087
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41088
+  (0.0ms) SAVEPOINT active_record_1
41089
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:56:20.516928"], ["updated_at", "2015-02-17 13:56:20.516928"]]
41090
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41091
+ Rendered notifications_mailer/notify_new_message.html.erb (0.0ms)
41092
+ SQL (0.0ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
41093
+
41094
+ NotificationsMailer#send_mail_by: processed outbound mail in 1.4ms
41095
+
41096
+ Sent mail to user10@sleede.com (9.7ms)
41097
+ Date: Tue, 17 Feb 2015 14:56:20 +0100
41098
+ From: contact@sleede.com
41099
+ To: user10@sleede.com
41100
+ Message-ID: <54e348847ef9e_89923ff560465bf012553@pc12.home.mail>
41101
+ Subject: subject notify new message
41102
+ Mime-Version: 1.0
41103
+ Content-Type: text/html;
41104
+ charset=UTF-8
41105
+ Content-Transfer-Encoding: 7bit
41106
+
41107
+ <p>user10</p>
41108
+ <p>message body</p>
41109
+
41110
+  (0.8ms) rollback transaction
41111
+  (0.1ms) begin transaction
41112
+  (0.0ms) SAVEPOINT active_record_1
41113
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:20.531951"], ["updated_at", "2015-02-17 13:56:20.531951"]]
41114
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41115
+  (0.0ms) SAVEPOINT active_record_1
41116
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-02-17 13:56:20.533794"], ["updated_at", "2015-02-17 13:56:20.533794"]]
41117
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41118
+  (0.1ms) SAVEPOINT active_record_1
41119
+ 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-02-17 13:56:20.536737"], ["updated_at", "2015-02-17 13:56:20.536737"]]
41120
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41121
+  (0.6ms) rollback transaction
41122
+  (0.1ms) begin transaction
41123
+  (0.0ms) SAVEPOINT active_record_1
41124
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:20.540266"], ["updated_at", "2015-02-17 13:56:20.540266"]]
41125
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41126
+  (0.0ms) SAVEPOINT active_record_1
41127
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-02-17 13:56:20.542402"], ["updated_at", "2015-02-17 13:56:20.542402"]]
41128
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41129
+  (1.3ms) rollback transaction
41130
+  (0.1ms) begin transaction
41131
+  (0.1ms) SAVEPOINT active_record_1
41132
+ SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:20.550389"], ["updated_at", "2015-02-17 13:56:20.550389"]]
41133
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41134
+  (0.1ms) SAVEPOINT active_record_1
41135
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-02-17 13:56:20.554682"], ["updated_at", "2015-02-17 13:56:20.554682"]]
41136
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41137
+  (0.6ms) rollback transaction
41138
+  (0.0ms) begin transaction
41139
+  (0.0ms) SAVEPOINT active_record_1
41140
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:20.559645"], ["updated_at", "2015-02-17 13:56:20.559645"]]
41141
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41142
+  (0.0ms) SAVEPOINT active_record_1
41143
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-02-17 13:56:20.561286"], ["updated_at", "2015-02-17 13:56:20.561286"]]
41144
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41145
+  (0.6ms) rollback transaction
41146
+  (0.1ms) begin transaction
41147
+  (0.0ms) SAVEPOINT active_record_1
41148
+ SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:20.566111"], ["updated_at", "2015-02-17 13:56:20.566111"]]
41149
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41150
+  (0.0ms) SAVEPOINT active_record_1
41151
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-02-17 13:56:20.568424"], ["updated_at", "2015-02-17 13:56:20.568424"]]
41152
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41153
+  (0.1ms) SAVEPOINT active_record_1
41154
+ 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-02-17 13:56:20.572236"], ["updated_at", "2015-02-17 13:56:20.572236"]]
41155
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41156
+ SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]
41157
+  (0.7ms) rollback transaction
41158
+  (0.1ms) begin transaction
41159
+  (0.1ms) SAVEPOINT active_record_1
41160
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:20.576482"], ["updated_at", "2015-02-17 13:56:20.576482"]]
41161
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41162
+  (0.1ms) SAVEPOINT active_record_1
41163
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-02-17 13:56:20.578534"], ["updated_at", "2015-02-17 13:56:20.578534"]]
41164
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41165
+  (0.0ms) SAVEPOINT active_record_1
41166
+ 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-02-17 13:56:20.580904"], ["updated_at", "2015-02-17 13:56:20.580904"]]
41167
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41168
+ Rendered notifications_mailer/notify_new_message.html.erb (0.1ms)
41169
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
41170
+
41171
+ NotificationsMailer#send_mail_by: processed outbound mail in 1.8ms
41172
+
41173
+ Sent mail to user16@sleede.com (1.7ms)
41174
+ Date: Tue, 17 Feb 2015 14:56:20 +0100
41175
+ From: contact@sleede.com
41176
+ To: user16@sleede.com
41177
+ Message-ID: <54e348848eda0_89923ff560465bf0126db@pc12.home.mail>
41178
+ Subject: subject notify new message
41179
+ Mime-Version: 1.0
41180
+ Content-Type: text/html;
41181
+ charset=UTF-8
41182
+ Content-Transfer-Encoding: 7bit
41183
+
41184
+ <p>user16</p>
41185
+ <p>message body</p>
41186
+
41187
+  (0.9ms) rollback transaction
41188
+  (0.1ms) begin transaction
41189
+  (0.0ms) SAVEPOINT active_record_1
41190
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:20.589868"], ["updated_at", "2015-02-17 13:56:20.589868"]]
41191
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41192
+  (0.1ms) SAVEPOINT active_record_1
41193
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-02-17 13:56:20.592589"], ["updated_at", "2015-02-17 13:56:20.592589"]]
41194
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41195
+  (0.0ms) SAVEPOINT active_record_1
41196
+ 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-02-17 13:56:20.595018"], ["updated_at", "2015-02-17 13:56:20.595018"]]
41197
+  (0.2ms) RELEASE SAVEPOINT active_record_1
41198
+ [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 2ed7e360-93d0-4561-b1e8-4e3550a8ba1e) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Notification/1
41199
+ [ActiveJob] Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]
41200
+ [ActiveJob] [ActionMailer::DeliveryJob] [2ed7e360-93d0-4561-b1e8-4e3550a8ba1e] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Notification/1
41201
+ [ActiveJob] [ActionMailer::DeliveryJob] [2ed7e360-93d0-4561-b1e8-4e3550a8ba1e] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
41202
+ [ActiveJob] [ActionMailer::DeliveryJob] [2ed7e360-93d0-4561-b1e8-4e3550a8ba1e] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
41203
+ [ActiveJob] [ActionMailer::DeliveryJob] [2ed7e360-93d0-4561-b1e8-4e3550a8ba1e] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms)
41204
+ [ActiveJob] [ActionMailer::DeliveryJob] [2ed7e360-93d0-4561-b1e8-4e3550a8ba1e] SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
41205
+ [ActiveJob] [ActionMailer::DeliveryJob] [2ed7e360-93d0-4561-b1e8-4e3550a8ba1e]
41206
+ NotificationsMailer#send_mail_by: processed outbound mail in 3.8ms
41207
+ [ActiveJob] [ActionMailer::DeliveryJob] [2ed7e360-93d0-4561-b1e8-4e3550a8ba1e]
41208
+ Sent mail to user17@sleede.com (1.6ms)
41209
+ [ActiveJob] [ActionMailer::DeliveryJob] [2ed7e360-93d0-4561-b1e8-4e3550a8ba1e] Date: Tue, 17 Feb 2015 14:56:20 +0100
41210
+ From: contact@sleede.com
41211
+ To: user17@sleede.com
41212
+ Message-ID: <54e348849849a_89923ff560465bf012756@pc12.home.mail>
41213
+ Subject: subject notify new message
41214
+ Mime-Version: 1.0
41215
+ Content-Type: text/html;
41216
+ charset=UTF-8
41217
+ Content-Transfer-Encoding: 7bit
41218
+
41219
+ <p>user17</p>
41220
+ <p>message body</p>
41221
+
41222
+ [ActiveJob] [ActionMailer::DeliveryJob] [2ed7e360-93d0-4561-b1e8-4e3550a8ba1e] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.72ms
41223
+  (0.7ms) rollback transaction
41224
+  (0.1ms) begin transaction
41225
+  (0.0ms) SAVEPOINT active_record_1
41226
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:20.627229"], ["updated_at", "2015-02-17 13:56:20.627229"]]
41227
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41228
+  (0.0ms) SAVEPOINT active_record_1
41229
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-02-17 13:56:20.628954"], ["updated_at", "2015-02-17 13:56:20.628954"]]
41230
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41231
+  (0.8ms) rollback transaction
41232
+  (0.0ms) begin transaction
41233
+  (0.1ms) SAVEPOINT active_record_1
41234
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:20.634167"], ["updated_at", "2015-02-17 13:56:20.634167"]]
41235
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41236
+  (0.0ms) SAVEPOINT active_record_1
41237
+ SQL (0.6ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-02-17 13:56:20.636851"], ["updated_at", "2015-02-17 13:56:20.636851"]]
41238
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41239
+  (0.7ms) rollback transaction
41240
+  (0.1ms) begin transaction
41241
+  (0.0ms) SAVEPOINT active_record_1
41242
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:20.642124"], ["updated_at", "2015-02-17 13:56:20.642124"]]
41243
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41244
+  (0.1ms) SAVEPOINT active_record_1
41245
+ SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-02-17 13:56:20.645544"], ["updated_at", "2015-02-17 13:56:20.645544"]]
41246
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41247
+  (0.9ms) rollback transaction
41248
+  (0.1ms) begin transaction
41249
+  (0.1ms) SAVEPOINT active_record_1
41250
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:20.652608"], ["updated_at", "2015-02-17 13:56:20.652608"]]
41251
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41252
+  (0.0ms) SAVEPOINT active_record_1
41253
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-02-17 13:56:20.655991"], ["updated_at", "2015-02-17 13:56:20.655991"]]
41254
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41255
+  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
41256
+  (0.0ms) SAVEPOINT active_record_1
41257
+ 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-02-17 13:56:20.662972"], ["updated_at", "2015-02-17 13:56:20.662972"]]
41258
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41259
+  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
41260
+  (0.7ms) rollback transaction
41261
+  (0.0ms) begin transaction
41262
+  (0.0ms) SAVEPOINT active_record_1
41263
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:20.667223"], ["updated_at", "2015-02-17 13:56:20.667223"]]
41264
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41265
+  (0.0ms) SAVEPOINT active_record_1
41266
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-02-17 13:56:20.669069"], ["updated_at", "2015-02-17 13:56:20.669069"]]
41267
+  (1.5ms) RELEASE SAVEPOINT active_record_1
41268
+  (0.1ms) SAVEPOINT active_record_1
41269
+ 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-02-17 13:56:20.672953"], ["updated_at", "2015-02-17 13:56:20.672953"]]
41270
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41271
+  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
41272
+  (0.0ms) SAVEPOINT active_record_1
41273
+ SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]
41274
+ Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')
41275
+ SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]
41276
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41277
+  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
41278
+  (0.7ms) rollback transaction
41279
+  (0.0ms) begin transaction
41280
+  (0.0ms) rollback transaction
41281
+  (0.0ms) begin transaction
41282
+  (0.0ms) rollback transaction
41283
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
41284
+  (8.8ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
41285
+  (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)
41286
+  (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) 
41287
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
41288
+  (0.1ms) select sqlite_version(*)
41289
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
41290
+  (0.1ms) SELECT version FROM "schema_migrations"
41291
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216115438')
41292
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
41293
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
41294
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
41295
+  (0.1ms) begin transaction
41296
+  (0.1ms) SAVEPOINT active_record_1
41297
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-02-17 13:56:37.872686"], ["updated_at", "2015-02-17 13:56:37.872686"]]
41298
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41299
+  (0.1ms) SAVEPOINT active_record_1
41300
+ SQL (1.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:37.889228"], ["updated_at", "2015-02-17 13:56:37.889228"]]
41301
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41302
+  (0.0ms) SAVEPOINT active_record_1
41303
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:56:37.892793"], ["updated_at", "2015-02-17 13:56:37.892793"]]
41304
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41305
+ Processing by API::NotificationsController#index as JSON
41306
+ Rendered api/notifications/index.json.jbuilder (0.3ms)
41307
+ Completed 200 OK in 19ms (Views: 9.2ms | ActiveRecord: 0.0ms)
41308
+  (0.7ms) rollback transaction
41309
+  (0.1ms) begin transaction
41310
+  (0.0ms) SAVEPOINT active_record_1
41311
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-02-17 13:56:37.930339"], ["updated_at", "2015-02-17 13:56:37.930339"]]
41312
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41313
+  (0.0ms) SAVEPOINT active_record_1
41314
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:37.932275"], ["updated_at", "2015-02-17 13:56:37.932275"]]
41315
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41316
+  (0.0ms) SAVEPOINT active_record_1
41317
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:56:37.933989"], ["updated_at", "2015-02-17 13:56:37.933989"]]
41318
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41319
+ Processing by API::NotificationsController#index as JSON
41320
+ Notification Load (0.3ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
41321
+ Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
41322
+ Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms)
41323
+ Rendered api/notifications/index.json.jbuilder (15.9ms)
41324
+ Completed 200 OK in 18ms (Views: 16.3ms | ActiveRecord: 0.4ms)
41325
+  (0.7ms) rollback transaction
41326
+  (0.1ms) begin transaction
41327
+  (0.0ms) SAVEPOINT active_record_1
41328
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-02-17 13:56:37.961152"], ["updated_at", "2015-02-17 13:56:37.961152"]]
41329
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41330
+  (0.1ms) SAVEPOINT active_record_1
41331
+ SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:37.963595"], ["updated_at", "2015-02-17 13:56:37.963595"]]
41332
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41333
+  (0.0ms) SAVEPOINT active_record_1
41334
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:56:37.966679"], ["updated_at", "2015-02-17 13:56:37.966679"]]
41335
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41336
+ Processing by API::NotificationsController#show as JSON
41337
+ Parameters: {"id"=>"1"}
41338
+ 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]]
41339
+ Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
41340
+ Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms)
41341
+ Rendered api/notifications/show.json.jbuilder (1.8ms)
41342
+ Completed 200 OK in 8ms (Views: 2.8ms | ActiveRecord: 0.2ms)
41343
+  (0.6ms) rollback transaction
41344
+  (0.1ms) begin transaction
41345
+  (0.0ms) SAVEPOINT active_record_1
41346
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-02-17 13:56:37.982473"], ["updated_at", "2015-02-17 13:56:37.982473"]]
41347
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41348
+  (0.0ms) SAVEPOINT active_record_1
41349
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:37.984374"], ["updated_at", "2015-02-17 13:56:37.984374"]]
41350
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41351
+  (0.0ms) SAVEPOINT active_record_1
41352
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:56:37.986136"], ["updated_at", "2015-02-17 13:56:37.986136"]]
41353
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41354
+ Processing by API::NotificationsController#update as JSON
41355
+ Parameters: {"id"=>"1"}
41356
+ 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]]
41357
+ SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]
41358
+ Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
41359
+ Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms)
41360
+ Rendered api/notifications/show.json.jbuilder (1.4ms)
41361
+ Completed 200 OK in 5ms (Views: 1.8ms | ActiveRecord: 0.2ms)
41362
+  (0.6ms) rollback transaction
41363
+  (0.1ms) begin transaction
41364
+  (0.1ms) SAVEPOINT active_record_1
41365
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-02-17 13:56:38.008632"], ["updated_at", "2015-02-17 13:56:38.008632"]]
41366
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41367
+  (0.0ms) SAVEPOINT active_record_1
41368
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:38.010492"], ["updated_at", "2015-02-17 13:56:38.010492"]]
41369
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41370
+  (0.1ms) SAVEPOINT active_record_1
41371
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:56:38.012171"], ["updated_at", "2015-02-17 13:56:38.012171"]]
41372
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41373
+ Processing by API::NotificationsController#update_all as JSON
41374
+ Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = 'f' ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"]]
41375
+ SQL (0.1ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]
41376
+ Completed 204 No Content in 3ms (ActiveRecord: 0.2ms)
41377
+ Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]
41378
+  (0.8ms) rollback transaction
41379
+  (0.1ms) begin transaction
41380
+  (0.1ms) SAVEPOINT active_record_1
41381
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-02-17 13:56:38.182251"], ["updated_at", "2015-02-17 13:56:38.182251"]]
41382
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41383
+  (0.0ms) SAVEPOINT active_record_1
41384
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:38.184124"], ["updated_at", "2015-02-17 13:56:38.184124"]]
41385
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41386
+  (0.0ms) SAVEPOINT active_record_1
41387
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:56:38.185827"], ["updated_at", "2015-02-17 13:56:38.185827"]]
41388
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41389
+  (0.7ms) rollback transaction
41390
+  (0.1ms) begin transaction
41391
+  (0.0ms) SAVEPOINT active_record_1
41392
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-02-17 13:56:38.191173"], ["updated_at", "2015-02-17 13:56:38.191173"]]
41393
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41394
+  (0.0ms) SAVEPOINT active_record_1
41395
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:38.193034"], ["updated_at", "2015-02-17 13:56:38.193034"]]
41396
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41397
+  (0.0ms) SAVEPOINT active_record_1
41398
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:56:38.195069"], ["updated_at", "2015-02-17 13:56:38.195069"]]
41399
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41400
+ Rendered notifications_mailer/notify_new_message.html.erb (1.6ms)
41401
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
41402
+
41403
+ NotificationsMailer#send_mail_by: processed outbound mail in 15.6ms
41404
+
41405
+ Sent mail to user7@sleede.com (7.5ms)
41406
+ Date: Tue, 17 Feb 2015 14:56:38 +0100
41407
+ From: contact@sleede.com
41408
+ To: user7@sleede.com
41409
+ Message-ID: <54e34896351d9_89f43ffbdc463be872484@pc12.home.mail>
41410
+ Subject: subject notify new message
41411
+ Mime-Version: 1.0
41412
+ Content-Type: text/html;
41413
+ charset=UTF-8
41414
+ Content-Transfer-Encoding: 7bit
41415
+
41416
+ <p>user7</p>
41417
+ <p>message body</p>
41418
+
41419
+  (0.8ms) rollback transaction
41420
+  (0.1ms) begin transaction
41421
+  (0.1ms) SAVEPOINT active_record_1
41422
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-02-17 13:56:38.224186"], ["updated_at", "2015-02-17 13:56:38.224186"]]
41423
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41424
+  (0.1ms) SAVEPOINT active_record_1
41425
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:38.227331"], ["updated_at", "2015-02-17 13:56:38.227331"]]
41426
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41427
+  (0.0ms) SAVEPOINT active_record_1
41428
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:56:38.229408"], ["updated_at", "2015-02-17 13:56:38.229408"]]
41429
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41430
+ Rendered notifications_mailer/notify_new_message.html.erb (0.1ms)
41431
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
41432
+
41433
+ NotificationsMailer#send_mail_by: processed outbound mail in 1.9ms
41434
+
41435
+ Sent mail to user8@sleede.com (1.4ms)
41436
+ Date: Tue, 17 Feb 2015 14:56:38 +0100
41437
+ From: contact@sleede.com
41438
+ To: user8@sleede.com
41439
+ Message-ID: <54e3489638f8d_89f43ffbdc463be872513@pc12.home.mail>
41440
+ Subject: subject notify new message
41441
+ Mime-Version: 1.0
41442
+ Content-Type: text/html;
41443
+ charset=UTF-8
41444
+ Content-Transfer-Encoding: 7bit
41445
+
41446
+ <p>user8</p>
41447
+ <p>message body</p>
41448
+
41449
+  (0.7ms) rollback transaction
41450
+  (0.1ms) begin transaction
41451
+  (0.0ms) SAVEPOINT active_record_1
41452
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-02-17 13:56:38.236922"], ["updated_at", "2015-02-17 13:56:38.236922"]]
41453
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41454
+  (0.0ms) SAVEPOINT active_record_1
41455
+ SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:38.238622"], ["updated_at", "2015-02-17 13:56:38.238622"]]
41456
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41457
+  (0.0ms) SAVEPOINT active_record_1
41458
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:56:38.240988"], ["updated_at", "2015-02-17 13:56:38.240988"]]
41459
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41460
+ Rendered notifications_mailer/notify_new_message.html.erb (0.0ms)
41461
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
41462
+
41463
+ NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms
41464
+
41465
+ Sent mail to user9@sleede.com (1.5ms)
41466
+ Date: Tue, 17 Feb 2015 14:56:38 +0100
41467
+ From: contact@sleede.com
41468
+ To: user9@sleede.com
41469
+ Message-ID: <54e348963bae1_89f43ffbdc463be87269f@pc12.home.mail>
41470
+ Subject: subject notify new message
41471
+ Mime-Version: 1.0
41472
+ Content-Type: text/html;
41473
+ charset=UTF-8
41474
+ Content-Transfer-Encoding: 7bit
41475
+
41476
+ <p>user9</p>
41477
+ <p>message body</p>
41478
+
41479
+  (0.7ms) rollback transaction
41480
+  (0.1ms) begin transaction
41481
+  (0.0ms) SAVEPOINT active_record_1
41482
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-02-17 13:56:38.248285"], ["updated_at", "2015-02-17 13:56:38.248285"]]
41483
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41484
+  (0.0ms) SAVEPOINT active_record_1
41485
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:38.250077"], ["updated_at", "2015-02-17 13:56:38.250077"]]
41486
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41487
+  (0.0ms) SAVEPOINT active_record_1
41488
+ SQL (0.1ms) INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-02-17 13:56:38.251566"], ["updated_at", "2015-02-17 13:56:38.251566"]]
41489
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41490
+ Rendered notifications_mailer/notify_new_message.html.erb (0.0ms)
41491
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
41492
+
41493
+ NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms
41494
+
41495
+ Sent mail to user10@sleede.com (8.1ms)
41496
+ Date: Tue, 17 Feb 2015 14:56:38 +0100
41497
+ From: contact@sleede.com
41498
+ To: user10@sleede.com
41499
+ Message-ID: <54e348963e2c5_89f43ffbdc463be8727e2@pc12.home.mail>
41500
+ Subject: subject notify new message
41501
+ Mime-Version: 1.0
41502
+ Content-Type: text/html;
41503
+ charset=UTF-8
41504
+ Content-Transfer-Encoding: 7bit
41505
+
41506
+ <p>user10</p>
41507
+ <p>message body</p>
41508
+
41509
+  (0.8ms) rollback transaction
41510
+  (0.1ms) begin transaction
41511
+  (0.0ms) SAVEPOINT active_record_1
41512
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:38.264758"], ["updated_at", "2015-02-17 13:56:38.264758"]]
41513
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41514
+  (0.0ms) SAVEPOINT active_record_1
41515
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-02-17 13:56:38.266331"], ["updated_at", "2015-02-17 13:56:38.266331"]]
41516
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41517
+  (0.0ms) SAVEPOINT active_record_1
41518
+ 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-02-17 13:56:38.268267"], ["updated_at", "2015-02-17 13:56:38.268267"]]
41519
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41520
+  (1.0ms) rollback transaction
41521
+  (0.1ms) begin transaction
41522
+  (0.0ms) SAVEPOINT active_record_1
41523
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:38.271826"], ["updated_at", "2015-02-17 13:56:38.271826"]]
41524
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41525
+  (0.0ms) SAVEPOINT active_record_1
41526
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-02-17 13:56:38.273684"], ["updated_at", "2015-02-17 13:56:38.273684"]]
41527
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41528
+  (0.7ms) rollback transaction
41529
+  (0.1ms) begin transaction
41530
+  (0.0ms) SAVEPOINT active_record_1
41531
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:38.280396"], ["updated_at", "2015-02-17 13:56:38.280396"]]
41532
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41533
+  (0.0ms) SAVEPOINT active_record_1
41534
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-02-17 13:56:38.281980"], ["updated_at", "2015-02-17 13:56:38.281980"]]
41535
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41536
+  (0.7ms) rollback transaction
41537
+  (0.1ms) begin transaction
41538
+  (0.1ms) SAVEPOINT active_record_1
41539
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:38.287174"], ["updated_at", "2015-02-17 13:56:38.287174"]]
41540
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41541
+  (0.0ms) SAVEPOINT active_record_1
41542
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-02-17 13:56:38.289350"], ["updated_at", "2015-02-17 13:56:38.289350"]]
41543
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41544
+  (0.7ms) rollback transaction
41545
+  (0.1ms) begin transaction
41546
+  (0.0ms) SAVEPOINT active_record_1
41547
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:38.293998"], ["updated_at", "2015-02-17 13:56:38.293998"]]
41548
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41549
+  (0.0ms) SAVEPOINT active_record_1
41550
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-02-17 13:56:38.295708"], ["updated_at", "2015-02-17 13:56:38.295708"]]
41551
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41552
+  (0.0ms) SAVEPOINT active_record_1
41553
+ 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-02-17 13:56:38.298282"], ["updated_at", "2015-02-17 13:56:38.298282"]]
41554
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41555
+ SQL (0.0ms) UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]]
41556
+  (0.6ms) rollback transaction
41557
+  (0.1ms) begin transaction
41558
+  (0.0ms) SAVEPOINT active_record_1
41559
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:38.301683"], ["updated_at", "2015-02-17 13:56:38.301683"]]
41560
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41561
+  (0.1ms) SAVEPOINT active_record_1
41562
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-02-17 13:56:38.303505"], ["updated_at", "2015-02-17 13:56:38.303505"]]
41563
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41564
+  (0.0ms) SAVEPOINT active_record_1
41565
+ 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-02-17 13:56:38.305631"], ["updated_at", "2015-02-17 13:56:38.305631"]]
41566
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41567
+ Rendered notifications_mailer/notify_new_message.html.erb (0.0ms)
41568
+ SQL (0.1ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
41569
+
41570
+ NotificationsMailer#send_mail_by: processed outbound mail in 1.6ms
41571
+
41572
+ Sent mail to user16@sleede.com (1.4ms)
41573
+ Date: Tue, 17 Feb 2015 14:56:38 +0100
41574
+ From: contact@sleede.com
41575
+ To: user16@sleede.com
41576
+ Message-ID: <54e348964b70f_89f43ffbdc463be87289a@pc12.home.mail>
41577
+ Subject: subject notify new message
41578
+ Mime-Version: 1.0
41579
+ Content-Type: text/html;
41580
+ charset=UTF-8
41581
+ Content-Transfer-Encoding: 7bit
41582
+
41583
+ <p>user16</p>
41584
+ <p>message body</p>
41585
+
41586
+  (0.9ms) rollback transaction
41587
+  (0.1ms) begin transaction
41588
+  (0.0ms) SAVEPOINT active_record_1
41589
+ SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:38.313442"], ["updated_at", "2015-02-17 13:56:38.313442"]]
41590
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41591
+  (0.0ms) SAVEPOINT active_record_1
41592
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-02-17 13:56:38.315526"], ["updated_at", "2015-02-17 13:56:38.315526"]]
41593
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41594
+  (0.0ms) SAVEPOINT active_record_1
41595
+ 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-02-17 13:56:38.317806"], ["updated_at", "2015-02-17 13:56:38.317806"]]
41596
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41597
+ [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: ee33edc9-f9fa-407a-aa2c-1f9a3293d784) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Notification/1
41598
+ [ActiveJob] Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]]
41599
+ [ActiveJob] [ActionMailer::DeliveryJob] [ee33edc9-f9fa-407a-aa2c-1f9a3293d784] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Notification/1
41600
+ [ActiveJob] [ActionMailer::DeliveryJob] [ee33edc9-f9fa-407a-aa2c-1f9a3293d784] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
41601
+ [ActiveJob] [ActionMailer::DeliveryJob] [ee33edc9-f9fa-407a-aa2c-1f9a3293d784] Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
41602
+ [ActiveJob] [ActionMailer::DeliveryJob] [ee33edc9-f9fa-407a-aa2c-1f9a3293d784] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms)
41603
+ [ActiveJob] [ActionMailer::DeliveryJob] [ee33edc9-f9fa-407a-aa2c-1f9a3293d784] SQL (0.0ms) UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]]
41604
+ [ActiveJob] [ActionMailer::DeliveryJob] [ee33edc9-f9fa-407a-aa2c-1f9a3293d784]
41605
+ NotificationsMailer#send_mail_by: processed outbound mail in 3.3ms
41606
+ [ActiveJob] [ActionMailer::DeliveryJob] [ee33edc9-f9fa-407a-aa2c-1f9a3293d784]
41607
+ Sent mail to user17@sleede.com (1.4ms)
41608
+ [ActiveJob] [ActionMailer::DeliveryJob] [ee33edc9-f9fa-407a-aa2c-1f9a3293d784] Date: Tue, 17 Feb 2015 14:56:38 +0100
41609
+ From: contact@sleede.com
41610
+ To: user17@sleede.com
41611
+ Message-ID: <54e3489653105_89f43ffbdc463be872991@pc12.home.mail>
41612
+ Subject: subject notify new message
41613
+ Mime-Version: 1.0
41614
+ Content-Type: text/html;
41615
+ charset=UTF-8
41616
+ Content-Transfer-Encoding: 7bit
41617
+
41618
+ <p>user17</p>
41619
+ <p>message body</p>
41620
+
41621
+ [ActiveJob] [ActionMailer::DeliveryJob] [ee33edc9-f9fa-407a-aa2c-1f9a3293d784] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.0ms
41622
+  (0.8ms) rollback transaction
41623
+  (0.1ms) begin transaction
41624
+  (0.0ms) SAVEPOINT active_record_1
41625
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:38.343403"], ["updated_at", "2015-02-17 13:56:38.343403"]]
41626
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41627
+  (0.0ms) SAVEPOINT active_record_1
41628
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-02-17 13:56:38.345299"], ["updated_at", "2015-02-17 13:56:38.345299"]]
41629
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41630
+  (0.7ms) rollback transaction
41631
+  (0.0ms) begin transaction
41632
+  (0.0ms) SAVEPOINT active_record_1
41633
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:38.348570"], ["updated_at", "2015-02-17 13:56:38.348570"]]
41634
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41635
+  (0.0ms) SAVEPOINT active_record_1
41636
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-02-17 13:56:38.350346"], ["updated_at", "2015-02-17 13:56:38.350346"]]
41637
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41638
+  (0.8ms) rollback transaction
41639
+  (0.1ms) begin transaction
41640
+  (0.1ms) SAVEPOINT active_record_1
41641
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:38.354903"], ["updated_at", "2015-02-17 13:56:38.354903"]]
41642
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41643
+  (0.0ms) SAVEPOINT active_record_1
41644
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-02-17 13:56:38.357935"], ["updated_at", "2015-02-17 13:56:38.357935"]]
41645
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41646
+  (0.7ms) rollback transaction
41647
+  (0.0ms) begin transaction
41648
+  (0.0ms) SAVEPOINT active_record_1
41649
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:38.361977"], ["updated_at", "2015-02-17 13:56:38.361977"]]
41650
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41651
+  (0.0ms) SAVEPOINT active_record_1
41652
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-02-17 13:56:38.363508"], ["updated_at", "2015-02-17 13:56:38.363508"]]
41653
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41654
+  (0.1ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
41655
+  (0.0ms) SAVEPOINT active_record_1
41656
+ 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-02-17 13:56:38.370436"], ["updated_at", "2015-02-17 13:56:38.370436"]]
41657
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41658
+  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
41659
+  (0.6ms) rollback transaction
41660
+  (0.0ms) begin transaction
41661
+  (0.1ms) SAVEPOINT active_record_1
41662
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-02-17 13:56:38.375627"], ["updated_at", "2015-02-17 13:56:38.375627"]]
41663
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41664
+  (0.0ms) SAVEPOINT active_record_1
41665
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-02-17 13:56:38.377436"], ["updated_at", "2015-02-17 13:56:38.377436"]]
41666
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41667
+  (0.0ms) SAVEPOINT active_record_1
41668
+ 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-02-17 13:56:38.379361"], ["updated_at", "2015-02-17 13:56:38.379361"]]
41669
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41670
+  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
41671
+  (0.0ms) SAVEPOINT active_record_1
41672
+ SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]
41673
+ Notification Load (0.1ms) SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')
41674
+ SQL (0.1ms) DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]]
41675
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41676
+  (0.0ms) SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
41677
+  (0.6ms) rollback transaction
41678
+  (0.0ms) begin transaction
41679
+  (0.0ms) rollback transaction
41680
+  (0.0ms) begin transaction
41681
+  (0.0ms) rollback transaction