wupee 1.0.2 → 1.0.3

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: 8b1e156622b84c44de1ac4f06f7b0206fc136701
4
- data.tar.gz: ba081168ac9039d4feef351c802738d5b7bec413
3
+ metadata.gz: de9504fc463ef29be2821c84d7c83db207c1698b
4
+ data.tar.gz: 7b2b1c49b7151216ee13482fee0a54cfbd08ce72
5
5
  SHA512:
6
- metadata.gz: 8352081b6bbf711c4521c63f13977bb72d71548884ae59a38bd5f3966fb99dfd1a0982f92ff953d50f2f0fcc39fbd3e875e9c3fd5bd38dc9183847279a78f167
7
- data.tar.gz: 6a05a6cfa4e4afc22f28ecaf3268405da56b69703143fe8b4842ab8b1151e65132c1b24dada715d87576390caf5fc7868a60a1ecd2582dc61744894831ebbd09
6
+ metadata.gz: 2dea044bc017794cff93d2efaa0b3876059af93481de62dfcf305c17377026ae73836705e4332440c5517d798aa135c205b7600ea53b134f359c2d658b587995
7
+ data.tar.gz: ebec95a621f8f93285272ba939b00791a53727f06bfaf2a106872783337737a0822d0fa2a953c42a848b2b7fcdd62b47122d441b14dd012dd89cf35cce811be5
data/lib/wupee.rb CHANGED
@@ -5,7 +5,7 @@ module Wupee
5
5
 
6
6
  def self.notify(opts = {}, &block)
7
7
  wupee_notifier = Wupee::Notifier.new(opts)
8
- wupee_notifier.instance_eval(&block) if block_given?
8
+ yield wupee_notifier if block_given?
9
9
  wupee_notifier.execute
10
10
  end
11
11
  end
data/lib/wupee/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Wupee
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20151029113122) do
14
+ ActiveRecord::Schema.define(version: 20151029113107) do
15
15
 
16
16
  create_table "messages", force: :cascade do |t|
17
17
  t.string "body"
Binary file
@@ -76397,3 +76397,1807 @@ Content-Transfer-Encoding: 7bit
76397
76397
   (0.0ms) rollback transaction
76398
76398
   (0.0ms) begin transaction
76399
76399
   (0.0ms) rollback transaction
76400
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
76401
+  (1.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
76402
+  (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)
76403
+  (1.2ms) CREATE TABLE "wupee_notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
76404
+  (0.1ms) select sqlite_version(*)
76405
+  (0.9ms) CREATE INDEX "idx_wupee_notif_type_config_on_notification_type_id" ON "wupee_notification_type_configurations" ("notification_type_id")
76406
+  (0.1ms) SELECT sql
76407
+ FROM sqlite_master
76408
+ WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index'
76409
+ UNION ALL
76410
+ SELECT sql
76411
+ FROM sqlite_temp_master
76412
+ WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index'
76413
+
76414
+  (0.8ms) CREATE INDEX "idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id" ON "wupee_notification_type_configurations" ("receiver_type", "receiver_id")
76415
+  (0.8ms) CREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
76416
+  (0.9ms) CREATE UNIQUE INDEX "index_wupee_notification_types_on_name" ON "wupee_notification_types" ("name")
76417
+  (0.9ms) CREATE TABLE "wupee_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
76418
+  (1.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
76419
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
76420
+  (0.1ms) SELECT version FROM "schema_migrations"
76421
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151029113122')
76422
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213150625')
76423
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150213152846')
76424
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
76425
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
76426
+ Migrating to CreateWupeeNotificationTypes (20151029113100)
76427
+  (0.1ms) begin transaction
76428
+  (0.1ms) CREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
76429
+ SQLite3::SQLException: table "wupee_notification_types" already exists: CREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
76430
+  (0.0ms) rollback transaction
76431
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
76432
+  (0.1ms) select sqlite_version(*)
76433
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
76434
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
76435
+ Migrating to CreateUsers (20150213150625)
76436
+  (0.1ms) begin transaction
76437
+  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
76438
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213150625"]]
76439
+  (0.8ms) commit transaction
76440
+ Migrating to CreateMessages (20150213152846)
76441
+  (0.1ms) begin transaction
76442
+  (0.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
76443
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150213152846"]]
76444
+  (0.8ms) commit transaction
76445
+ Migrating to CreateWupeeNotificationTypes (20151029113100)
76446
+  (0.1ms) begin transaction
76447
+  (0.3ms) CREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
76448
+  (0.4ms) CREATE UNIQUE INDEX "index_wupee_notification_types_on_name" ON "wupee_notification_types" ("name")
76449
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029113100"]]
76450
+  (2.5ms) commit transaction
76451
+ Migrating to CreateWupeeNotificationTypeConfigurations (20151029113101)
76452
+  (0.3ms) begin transaction
76453
+  (0.6ms) CREATE TABLE "wupee_notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
76454
+  (0.2ms) CREATE INDEX "idx_wupee_notif_type_config_on_notification_type_id" ON "wupee_notification_type_configurations" ("notification_type_id")
76455
+  (0.1ms)  SELECT sql
76456
+ FROM sqlite_master
76457
+ WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index'
76458
+ UNION ALL
76459
+ SELECT sql
76460
+ FROM sqlite_temp_master
76461
+ WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index'
76462
+ 
76463
+  (0.2ms) CREATE INDEX "idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id" ON "wupee_notification_type_configurations" ("receiver_type", "receiver_id")
76464
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029113101"]]
76465
+  (0.8ms) commit transaction
76466
+ Migrating to CreateWupeeNotifications (20151029113107)
76467
+  (0.1ms) begin transaction
76468
+  (0.3ms) CREATE TABLE "wupee_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
76469
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029113107"]]
76470
+  (0.8ms) commit transaction
76471
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
76472
+  (0.1ms) SELECT sql
76473
+ FROM sqlite_master
76474
+ WHERE name='idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id' AND type='index'
76475
+ UNION ALL
76476
+ SELECT sql
76477
+ FROM sqlite_temp_master
76478
+ WHERE name='idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id' AND type='index'
76479
+
76480
+  (0.1ms)  SELECT sql
76481
+ FROM sqlite_master
76482
+ WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index'
76483
+ UNION ALL
76484
+ SELECT sql
76485
+ FROM sqlite_temp_master
76486
+ WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index'
76487
+ 
76488
+  (0.1ms) SELECT sql
76489
+ FROM sqlite_master
76490
+ WHERE name='index_wupee_notification_types_on_name' AND type='index'
76491
+ UNION ALL
76492
+ SELECT sql
76493
+ FROM sqlite_temp_master
76494
+ WHERE name='index_wupee_notification_types_on_name' AND type='index'
76495
+
76496
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
76497
+  (0.1ms) begin transaction
76498
+  (0.1ms) SAVEPOINT active_record_1
76499
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-11-04 09:18:58.298101"], ["updated_at", "2015-11-04 09:18:58.298101"]]
76500
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
76501
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76502
+  (0.1ms) SAVEPOINT active_record_1
76503
+ SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.313735"], ["updated_at", "2015-11-04 09:18:58.313735"]]
76504
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76505
+ Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]
76506
+  (0.1ms) SAVEPOINT active_record_1
76507
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
76508
+ SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.339710"], ["updated_at", "2015-11-04 09:18:58.339710"]]
76509
+  (0.1ms) SELECT "users"."id" FROM "users"
76510
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
76511
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
76512
+ SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:18:58.352876"], ["updated_at", "2015-11-04 09:18:58.352876"]]
76513
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76514
+  (0.0ms) SAVEPOINT active_record_1
76515
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:58.355575"], ["updated_at", "2015-11-04 09:18:58.355575"]]
76516
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76517
+ Processing by Wupee::Api::NotificationsController#index as JSON
76518
+ Rendered wupee/api/notifications/index.json.jbuilder (0.2ms)
76519
+ Completed 200 OK in 19ms (Views: 11.2ms | ActiveRecord: 0.0ms)
76520
+  (0.8ms) rollback transaction
76521
+  (0.1ms) begin transaction
76522
+  (0.1ms) SAVEPOINT active_record_1
76523
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-11-04 09:18:58.393793"], ["updated_at", "2015-11-04 09:18:58.393793"]]
76524
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
76525
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76526
+  (0.0ms) SAVEPOINT active_record_1
76527
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.396120"], ["updated_at", "2015-11-04 09:18:58.396120"]]
76528
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76529
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]
76530
+  (0.0ms) SAVEPOINT active_record_1
76531
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
76532
+ SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.398755"], ["updated_at", "2015-11-04 09:18:58.398755"]]
76533
+  (0.1ms) SELECT "users"."id" FROM "users"
76534
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
76535
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
76536
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:18:58.401267"], ["updated_at", "2015-11-04 09:18:58.401267"]]
76537
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76538
+  (0.0ms) SAVEPOINT active_record_1
76539
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:58.403147"], ["updated_at", "2015-11-04 09:18:58.403147"]]
76540
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76541
+ Processing by Wupee::Api::NotificationsController#index as JSON
76542
+ Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
76543
+ Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
76544
+ Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
76545
+ Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.4ms)
76546
+ Rendered wupee/api/notifications/_notification.json.jbuilder (4.2ms)
76547
+ Rendered wupee/api/notifications/index.json.jbuilder (13.0ms)
76548
+ Completed 200 OK in 14ms (Views: 13.1ms | ActiveRecord: 0.3ms)
76549
+  (0.8ms) rollback transaction
76550
+  (0.2ms) begin transaction
76551
+  (0.1ms) SAVEPOINT active_record_1
76552
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-11-04 09:18:58.435376"], ["updated_at", "2015-11-04 09:18:58.435376"]]
76553
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
76554
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76555
+  (0.0ms) SAVEPOINT active_record_1
76556
+ SQL (0.5ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.438158"], ["updated_at", "2015-11-04 09:18:58.438158"]]
76557
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76558
+ Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]
76559
+  (0.1ms) SAVEPOINT active_record_1
76560
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
76561
+ SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.444081"], ["updated_at", "2015-11-04 09:18:58.444081"]]
76562
+  (0.4ms) SELECT "users"."id" FROM "users"
76563
+ Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
76564
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
76565
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:18:58.452463"], ["updated_at", "2015-11-04 09:18:58.452463"]]
76566
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76567
+  (0.0ms) SAVEPOINT active_record_1
76568
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:58.454183"], ["updated_at", "2015-11-04 09:18:58.454183"]]
76569
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76570
+ Processing by Wupee::Api::NotificationsController#show as JSON
76571
+ Parameters: {"id"=>"1"}
76572
+ Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]]
76573
+ Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
76574
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
76575
+ Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.1ms)
76576
+ Rendered wupee/api/notifications/_notification.json.jbuilder (1.9ms)
76577
+ Rendered wupee/api/notifications/show.json.jbuilder (3.1ms)
76578
+ Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.2ms)
76579
+  (0.8ms) rollback transaction
76580
+  (0.1ms) begin transaction
76581
+  (0.1ms) SAVEPOINT active_record_1
76582
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-11-04 09:18:58.467525"], ["updated_at", "2015-11-04 09:18:58.467525"]]
76583
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
76584
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76585
+  (0.0ms) SAVEPOINT active_record_1
76586
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.469996"], ["updated_at", "2015-11-04 09:18:58.469996"]]
76587
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76588
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]
76589
+  (0.0ms) SAVEPOINT active_record_1
76590
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
76591
+ SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.472277"], ["updated_at", "2015-11-04 09:18:58.472277"]]
76592
+  (0.1ms) SELECT "users"."id" FROM "users"
76593
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
76594
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
76595
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:18:58.475005"], ["updated_at", "2015-11-04 09:18:58.475005"]]
76596
+  (0.2ms) RELEASE SAVEPOINT active_record_1
76597
+  (0.1ms) SAVEPOINT active_record_1
76598
+ SQL (0.2ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:58.479005"], ["updated_at", "2015-11-04 09:18:58.479005"]]
76599
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76600
+ Processing by Wupee::Api::NotificationsController#update as JSON
76601
+ Parameters: {"id"=>"1"}
76602
+ Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]]
76603
+ SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]
76604
+ Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
76605
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
76606
+ Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.1ms)
76607
+ Rendered wupee/api/notifications/_notification.json.jbuilder (1.4ms)
76608
+ Rendered wupee/api/notifications/show.json.jbuilder (2.1ms)
76609
+ Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.3ms)
76610
+  (1.7ms) rollback transaction
76611
+  (0.3ms) begin transaction
76612
+  (0.1ms) SAVEPOINT active_record_1
76613
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-11-04 09:18:58.500105"], ["updated_at", "2015-11-04 09:18:58.500105"]]
76614
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
76615
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76616
+  (0.1ms) SAVEPOINT active_record_1
76617
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.502865"], ["updated_at", "2015-11-04 09:18:58.502865"]]
76618
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76619
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]
76620
+  (0.0ms) SAVEPOINT active_record_1
76621
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
76622
+ SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.505870"], ["updated_at", "2015-11-04 09:18:58.505870"]]
76623
+  (0.1ms) SELECT "users"."id" FROM "users"
76624
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
76625
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
76626
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:18:58.508556"], ["updated_at", "2015-11-04 09:18:58.508556"]]
76627
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76628
+  (0.0ms) SAVEPOINT active_record_1
76629
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:58.510568"], ["updated_at", "2015-11-04 09:18:58.510568"]]
76630
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76631
+ Processing by Wupee::Api::NotificationsController#update_all as JSON
76632
+ Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]]
76633
+ SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]
76634
+ Completed 204 No Content in 3ms (ActiveRecord: 0.2ms)
76635
+ Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]
76636
+  (0.9ms) rollback transaction
76637
+  (0.1ms) begin transaction
76638
+  (0.1ms) SAVEPOINT active_record_1
76639
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1
76640
+ SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-04 09:18:58.685053"], ["updated_at", "2015-11-04 09:18:58.685053"]]
76641
+  (0.0ms) SELECT "users"."id" FROM "users"
76642
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76643
+  (0.0ms) SAVEPOINT active_record_1
76644
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-11-04 09:18:58.687091"], ["updated_at", "2015-11-04 09:18:58.687091"]]
76645
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
76646
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
76647
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
76648
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-04 09:18:58.690438"], ["updated_at", "2015-11-04 09:18:58.690438"]]
76649
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76650
+  (0.0ms) SAVEPOINT active_record_1
76651
+ SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.692056"], ["updated_at", "2015-11-04 09:18:58.692056"]]
76652
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76653
+  (0.0ms) SAVEPOINT active_record_1
76654
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:58.693524"], ["updated_at", "2015-11-04 09:18:58.693524"]]
76655
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76656
+  (0.6ms) rollback transaction
76657
+  (0.1ms) begin transaction
76658
+  (0.0ms) SAVEPOINT active_record_1
76659
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1
76660
+ SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-04 09:18:58.699565"], ["updated_at", "2015-11-04 09:18:58.699565"]]
76661
+  (0.1ms) SELECT "users"."id" FROM "users"
76662
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76663
+  (0.0ms) SAVEPOINT active_record_1
76664
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-11-04 09:18:58.701797"], ["updated_at", "2015-11-04 09:18:58.701797"]]
76665
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
76666
+ Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
76667
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
76668
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-04 09:18:58.704380"], ["updated_at", "2015-11-04 09:18:58.704380"]]
76669
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76670
+  (0.0ms) SAVEPOINT active_record_1
76671
+ SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.705830"], ["updated_at", "2015-11-04 09:18:58.705830"]]
76672
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76673
+  (0.0ms) SAVEPOINT active_record_1
76674
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:58.707819"], ["updated_at", "2015-11-04 09:18:58.707819"]]
76675
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76676
+
76677
+ NotificationsMailer#send_mail_for: processed outbound mail in 22.3ms
76678
+  (1.1ms) rollback transaction
76679
+  (0.1ms) begin transaction
76680
+  (0.1ms) SAVEPOINT active_record_1
76681
+ Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1
76682
+ SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-04 09:18:58.737082"], ["updated_at", "2015-11-04 09:18:58.737082"]]
76683
+  (0.1ms) SELECT "users"."id" FROM "users"
76684
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76685
+  (0.1ms) SAVEPOINT active_record_1
76686
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-11-04 09:18:58.739771"], ["updated_at", "2015-11-04 09:18:58.739771"]]
76687
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
76688
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
76689
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
76690
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-04 09:18:58.742964"], ["updated_at", "2015-11-04 09:18:58.742964"]]
76691
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76692
+  (0.0ms) SAVEPOINT active_record_1
76693
+ SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.744661"], ["updated_at", "2015-11-04 09:18:58.744661"]]
76694
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76695
+  (0.0ms) SAVEPOINT active_record_1
76696
+ SQL (0.2ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:58.746378"], ["updated_at", "2015-11-04 09:18:58.746378"]]
76697
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76698
+
76699
+ NotificationsMailer#send_mail_for: processed outbound mail in 1.1ms
76700
+  (2.1ms) rollback transaction
76701
+  (0.2ms) begin transaction
76702
+  (0.1ms) SAVEPOINT active_record_1
76703
+ Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1
76704
+ SQL (0.5ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-04 09:18:58.759283"], ["updated_at", "2015-11-04 09:18:58.759283"]]
76705
+  (0.3ms) SELECT "users"."id" FROM "users"
76706
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76707
+  (0.1ms) SAVEPOINT active_record_1
76708
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-11-04 09:18:58.764720"], ["updated_at", "2015-11-04 09:18:58.764720"]]
76709
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
76710
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
76711
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
76712
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-04 09:18:58.767496"], ["updated_at", "2015-11-04 09:18:58.767496"]]
76713
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76714
+  (0.0ms) SAVEPOINT active_record_1
76715
+ SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.768909"], ["updated_at", "2015-11-04 09:18:58.768909"]]
76716
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76717
+  (0.0ms) SAVEPOINT active_record_1
76718
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:58.770302"], ["updated_at", "2015-11-04 09:18:58.770302"]]
76719
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76720
+
76721
+ NotificationsMailer#send_mail_for: processed outbound mail in 0.6ms
76722
+  (0.9ms) rollback transaction
76723
+  (0.1ms) begin transaction
76724
+  (0.0ms) SAVEPOINT active_record_1
76725
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1
76726
+ SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-04 09:18:58.775527"], ["updated_at", "2015-11-04 09:18:58.775527"]]
76727
+  (0.1ms) SELECT "users"."id" FROM "users"
76728
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76729
+  (0.0ms) SAVEPOINT active_record_1
76730
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-11-04 09:18:58.778363"], ["updated_at", "2015-11-04 09:18:58.778363"]]
76731
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
76732
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
76733
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
76734
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-04 09:18:58.781714"], ["updated_at", "2015-11-04 09:18:58.781714"]]
76735
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76736
+  (0.0ms) SAVEPOINT active_record_1
76737
+ SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.783423"], ["updated_at", "2015-11-04 09:18:58.783423"]]
76738
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76739
+  (0.0ms) SAVEPOINT active_record_1
76740
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:58.784755"], ["updated_at", "2015-11-04 09:18:58.784755"]]
76741
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76742
+
76743
+ NotificationsMailer#send_mail_for: processed outbound mail in 0.6ms
76744
+  (0.6ms) rollback transaction
76745
+  (0.1ms) begin transaction
76746
+  (0.0ms) SAVEPOINT active_record_1
76747
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.789032"], ["updated_at", "2015-11-04 09:18:58.789032"]]
76748
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76749
+  (0.1ms) SAVEPOINT active_record_1
76750
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-11-04 09:18:58.792348"], ["updated_at", "2015-11-04 09:18:58.792348"]]
76751
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
76752
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76753
+ Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]
76754
+  (0.1ms) SAVEPOINT active_record_1
76755
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
76756
+ SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.797546"], ["updated_at", "2015-11-04 09:18:58.797546"]]
76757
+  (0.1ms) SELECT "users"."id" FROM "users"
76758
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
76759
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
76760
+ SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:18:58.801064"], ["updated_at", "2015-11-04 09:18:58.801064"]]
76761
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76762
+  (0.1ms) SAVEPOINT active_record_1
76763
+ SQL (0.4ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:58.805830"], ["updated_at", "2015-11-04 09:18:58.805830"]]
76764
+  (0.2ms) RELEASE SAVEPOINT active_record_1
76765
+  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"
76766
+  (0.1ms) SAVEPOINT active_record_1
76767
+ Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 1], ["attached_object_type", "Message"]]
76768
+ SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]]
76769
+ SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]
76770
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76771
+  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"
76772
+  (0.6ms) rollback transaction
76773
+  (0.1ms) begin transaction
76774
+  (0.0ms) SAVEPOINT active_record_1
76775
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.820130"], ["updated_at", "2015-11-04 09:18:58.820130"]]
76776
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76777
+  (0.0ms) SAVEPOINT active_record_1
76778
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-11-04 09:18:58.821860"], ["updated_at", "2015-11-04 09:18:58.821860"]]
76779
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
76780
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76781
+  (0.0ms) SAVEPOINT active_record_1
76782
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
76783
+ SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.824646"], ["updated_at", "2015-11-04 09:18:58.824646"]]
76784
+  (0.1ms) SELECT "users"."id" FROM "users"
76785
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
76786
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
76787
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:18:58.827139"], ["updated_at", "2015-11-04 09:18:58.827139"]]
76788
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76789
+  (0.0ms) SAVEPOINT active_record_1
76790
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-11-04 09:18:58.829473"], ["updated_at", "2015-11-04 09:18:58.829473"]]
76791
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
76792
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
76793
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1
76794
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-04 09:18:58.832128"], ["updated_at", "2015-11-04 09:18:58.832128"]]
76795
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76796
+  (0.0ms) SAVEPOINT active_record_1
76797
+ SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.833596"], ["updated_at", "2015-11-04 09:18:58.833596"]]
76798
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76799
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]
76800
+  (0.0ms) SAVEPOINT active_record_1
76801
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:58.835589"], ["updated_at", "2015-11-04 09:18:58.835589"]]
76802
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76803
+ SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]
76804
+  (0.7ms) rollback transaction
76805
+  (0.1ms) begin transaction
76806
+  (0.1ms) SAVEPOINT active_record_1
76807
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.838938"], ["updated_at", "2015-11-04 09:18:58.838938"]]
76808
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76809
+  (0.0ms) SAVEPOINT active_record_1
76810
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-11-04 09:18:58.840816"], ["updated_at", "2015-11-04 09:18:58.840816"]]
76811
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
76812
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76813
+  (0.0ms) SAVEPOINT active_record_1
76814
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
76815
+ SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.843372"], ["updated_at", "2015-11-04 09:18:58.843372"]]
76816
+  (0.1ms) SELECT "users"."id" FROM "users"
76817
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
76818
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
76819
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:18:58.846404"], ["updated_at", "2015-11-04 09:18:58.846404"]]
76820
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76821
+  (0.1ms) SAVEPOINT active_record_1
76822
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-11-04 09:18:58.848573"], ["updated_at", "2015-11-04 09:18:58.848573"]]
76823
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
76824
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
76825
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1
76826
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-04 09:18:58.851329"], ["updated_at", "2015-11-04 09:18:58.851329"]]
76827
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76828
+  (0.0ms) SAVEPOINT active_record_1
76829
+ SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.852882"], ["updated_at", "2015-11-04 09:18:58.852882"]]
76830
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76831
+ Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]
76832
+  (0.1ms) SAVEPOINT active_record_1
76833
+ SQL (0.2ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:58.857128"], ["updated_at", "2015-11-04 09:18:58.857128"]]
76834
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76835
+ SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]
76836
+  (0.9ms) rollback transaction
76837
+  (0.1ms) begin transaction
76838
+  (0.1ms) SAVEPOINT active_record_1
76839
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.862223"], ["updated_at", "2015-11-04 09:18:58.862223"]]
76840
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76841
+  (0.0ms) SAVEPOINT active_record_1
76842
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-11-04 09:18:58.864434"], ["updated_at", "2015-11-04 09:18:58.864434"]]
76843
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
76844
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76845
+  (0.0ms) SAVEPOINT active_record_1
76846
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
76847
+ SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.866792"], ["updated_at", "2015-11-04 09:18:58.866792"]]
76848
+  (0.1ms) SELECT "users"."id" FROM "users"
76849
+ Wupee::NotificationTypeConfiguration Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
76850
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
76851
+ SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:18:58.874360"], ["updated_at", "2015-11-04 09:18:58.874360"]]
76852
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76853
+  (0.7ms) rollback transaction
76854
+  (0.1ms) begin transaction
76855
+  (0.1ms) SAVEPOINT active_record_1
76856
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.884316"], ["updated_at", "2015-11-04 09:18:58.884316"]]
76857
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76858
+  (0.1ms) SAVEPOINT active_record_1
76859
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-11-04 09:18:58.886291"], ["updated_at", "2015-11-04 09:18:58.886291"]]
76860
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
76861
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76862
+  (0.0ms) SAVEPOINT active_record_1
76863
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
76864
+ SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.888782"], ["updated_at", "2015-11-04 09:18:58.888782"]]
76865
+  (0.0ms) SELECT "users"."id" FROM "users"
76866
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
76867
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
76868
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:18:58.891103"], ["updated_at", "2015-11-04 09:18:58.891103"]]
76869
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76870
+  (0.8ms) rollback transaction
76871
+  (0.1ms) begin transaction
76872
+  (0.0ms) SAVEPOINT active_record_1
76873
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.895999"], ["updated_at", "2015-11-04 09:18:58.895999"]]
76874
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76875
+  (0.0ms) SAVEPOINT active_record_1
76876
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-11-04 09:18:58.897951"], ["updated_at", "2015-11-04 09:18:58.897951"]]
76877
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
76878
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76879
+  (0.0ms) SAVEPOINT active_record_1
76880
+ Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
76881
+ SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.900317"], ["updated_at", "2015-11-04 09:18:58.900317"]]
76882
+  (0.1ms) SELECT "users"."id" FROM "users"
76883
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
76884
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
76885
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:18:58.902633"], ["updated_at", "2015-11-04 09:18:58.902633"]]
76886
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76887
+  (0.0ms) SAVEPOINT active_record_1
76888
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-11-04 09:18:58.904393"], ["updated_at", "2015-11-04 09:18:58.904393"]]
76889
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
76890
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
76891
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1
76892
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-04 09:18:58.906978"], ["updated_at", "2015-11-04 09:18:58.906978"]]
76893
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76894
+  (0.1ms) SAVEPOINT active_record_1
76895
+ SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.908810"], ["updated_at", "2015-11-04 09:18:58.908810"]]
76896
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76897
+ Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]
76898
+  (0.0ms) SAVEPOINT active_record_1
76899
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:58.912781"], ["updated_at", "2015-11-04 09:18:58.912781"]]
76900
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76901
+  (0.8ms) rollback transaction
76902
+  (0.1ms) begin transaction
76903
+  (0.0ms) SAVEPOINT active_record_1
76904
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.917956"], ["updated_at", "2015-11-04 09:18:58.917956"]]
76905
+  (0.3ms) RELEASE SAVEPOINT active_record_1
76906
+  (0.2ms) SAVEPOINT active_record_1
76907
+ SQL (0.8ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-11-04 09:18:58.923611"], ["updated_at", "2015-11-04 09:18:58.923611"]]
76908
+  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
76909
+  (0.2ms) RELEASE SAVEPOINT active_record_1
76910
+  (0.1ms) SAVEPOINT active_record_1
76911
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
76912
+ SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.930547"], ["updated_at", "2015-11-04 09:18:58.930547"]]
76913
+  (0.1ms) SELECT "users"."id" FROM "users"
76914
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
76915
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
76916
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:18:58.933214"], ["updated_at", "2015-11-04 09:18:58.933214"]]
76917
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76918
+  (0.0ms) SAVEPOINT active_record_1
76919
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-11-04 09:18:58.934861"], ["updated_at", "2015-11-04 09:18:58.934861"]]
76920
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
76921
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
76922
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1
76923
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-04 09:18:58.937094"], ["updated_at", "2015-11-04 09:18:58.937094"]]
76924
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76925
+  (0.0ms) SAVEPOINT active_record_1
76926
+ SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.938693"], ["updated_at", "2015-11-04 09:18:58.938693"]]
76927
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76928
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]
76929
+  (0.0ms) SAVEPOINT active_record_1
76930
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:58.940550"], ["updated_at", "2015-11-04 09:18:58.940550"]]
76931
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76932
+  (0.8ms) rollback transaction
76933
+  (0.1ms) begin transaction
76934
+  (0.0ms) SAVEPOINT active_record_1
76935
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-11-04 09:18:58.944070"], ["updated_at", "2015-11-04 09:18:58.944070"]]
76936
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
76937
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76938
+  (0.0ms) SAVEPOINT active_record_1
76939
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
76940
+ SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.946788"], ["updated_at", "2015-11-04 09:18:58.946788"]]
76941
+  (0.0ms) SELECT "users"."id" FROM "users"
76942
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
76943
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
76944
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:18:58.949507"], ["updated_at", "2015-11-04 09:18:58.949507"]]
76945
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76946
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1
76947
+  (0.7ms) rollback transaction
76948
+  (0.1ms) begin transaction
76949
+  (0.0ms) SAVEPOINT active_record_1
76950
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-11-04 09:18:58.955030"], ["updated_at", "2015-11-04 09:18:58.955030"]]
76951
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
76952
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76953
+  (0.1ms) SAVEPOINT active_record_1
76954
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
76955
+ SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.959388"], ["updated_at", "2015-11-04 09:18:58.959388"]]
76956
+  (0.1ms) SELECT "users"."id" FROM "users"
76957
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
76958
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
76959
+ SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:18:58.963205"], ["updated_at", "2015-11-04 09:18:58.963205"]]
76960
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76961
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1
76962
+  (0.7ms) rollback transaction
76963
+  (0.1ms) begin transaction
76964
+  (0.1ms) SAVEPOINT active_record_1
76965
+ SQL (0.9ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-11-04 09:18:58.971003"], ["updated_at", "2015-11-04 09:18:58.971003"]]
76966
+  (0.4ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
76967
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76968
+  (0.1ms) SAVEPOINT active_record_1
76969
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
76970
+ SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.980002"], ["updated_at", "2015-11-04 09:18:58.980002"]]
76971
+  (0.1ms) SELECT "users"."id" FROM "users"
76972
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
76973
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
76974
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:18:58.983742"], ["updated_at", "2015-11-04 09:18:58.983742"]]
76975
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76976
+  (0.0ms) SAVEPOINT active_record_1
76977
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
76978
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
76979
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
76980
+  (0.8ms) rollback transaction
76981
+  (0.1ms) begin transaction
76982
+  (0.0ms) SAVEPOINT active_record_1
76983
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-11-04 09:18:58.990367"], ["updated_at", "2015-11-04 09:18:58.990367"]]
76984
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
76985
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76986
+  (0.0ms) SAVEPOINT active_record_1
76987
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
76988
+ SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.993438"], ["updated_at", "2015-11-04 09:18:58.993438"]]
76989
+  (0.1ms) SELECT "users"."id" FROM "users"
76990
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
76991
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
76992
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:18:58.996683"], ["updated_at", "2015-11-04 09:18:58.996683"]]
76993
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76994
+  (0.7ms) rollback transaction
76995
+  (0.1ms) begin transaction
76996
+  (0.0ms) SAVEPOINT active_record_1
76997
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-11-04 09:18:59.000383"], ["updated_at", "2015-11-04 09:18:59.000383"]]
76998
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
76999
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77000
+  (0.0ms) SAVEPOINT active_record_1
77001
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
77002
+ SQL (1.0ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:59.002888"], ["updated_at", "2015-11-04 09:18:59.002888"]]
77003
+  (0.2ms) SELECT "users"."id" FROM "users"
77004
+ Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
77005
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
77006
+ SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:18:59.009578"], ["updated_at", "2015-11-04 09:18:59.009578"]]
77007
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77008
+  (0.7ms) rollback transaction
77009
+  (0.1ms) begin transaction
77010
+  (0.0ms) SAVEPOINT active_record_1
77011
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
77012
+ SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:59.014628"], ["updated_at", "2015-11-04 09:18:59.014628"]]
77013
+  (0.1ms) SELECT "users"."id" FROM "users"
77014
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77015
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]
77016
+  (0.4ms) rollback transaction
77017
+  (0.1ms) begin transaction
77018
+  (0.0ms) SAVEPOINT active_record_1
77019
+ Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
77020
+ SQL (0.9ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:59.019111"], ["updated_at", "2015-11-04 09:18:59.019111"]]
77021
+  (0.2ms) SELECT "users"."id" FROM "users"
77022
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77023
+  (0.1ms) SAVEPOINT active_record_1
77024
+ SQL (0.8ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-11-04 09:18:59.026400"], ["updated_at", "2015-11-04 09:18:59.026400"]]
77025
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
77026
+ Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
77027
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
77028
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-04 09:18:59.032696"], ["updated_at", "2015-11-04 09:18:59.032696"]]
77029
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77030
+  (0.0ms) SAVEPOINT active_record_1
77031
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-11-04 09:18:59.034575"], ["updated_at", "2015-11-04 09:18:59.034575"]]
77032
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
77033
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
77034
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1
77035
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-04 09:18:59.037126"], ["updated_at", "2015-11-04 09:18:59.037126"]]
77036
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77037
+  (0.1ms) SAVEPOINT active_record_1
77038
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-11-04 09:18:59.039123"], ["updated_at", "2015-11-04 09:18:59.039123"]]
77039
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
77040
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
77041
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1
77042
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-11-04 09:18:59.041958"], ["updated_at", "2015-11-04 09:18:59.041958"]]
77043
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77044
+  (0.1ms) SAVEPOINT active_record_1
77045
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-11-04 09:18:59.043668"], ["updated_at", "2015-11-04 09:18:59.043668"]]
77046
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
77047
+ Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
77048
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1
77049
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-11-04 09:18:59.046747"], ["updated_at", "2015-11-04 09:18:59.046747"]]
77050
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77051
+ Wupee::NotificationTypeConfiguration Load (0.2ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1
77052
+  (0.0ms) SAVEPOINT active_record_1
77053
+ Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
77054
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1
77055
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
77056
+ SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-11-04 09:18:59.051981"], ["id", 2]]
77057
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77058
+ Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1
77059
+  (0.0ms) SAVEPOINT active_record_1
77060
+ Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
77061
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1
77062
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
77063
+ SQL (0.2ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-11-04 09:18:59.057926"], ["id", 3]]
77064
+  (0.2ms) RELEASE SAVEPOINT active_record_1
77065
+ Wupee::NotificationTypeConfiguration Load (0.2ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1
77066
+  (0.1ms) SAVEPOINT active_record_1
77067
+ Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
77068
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1
77069
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
77070
+ SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-11-04 09:18:59.064939"], ["id", 4]]
77071
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77072
+ Wupee::NotificationTypeConfiguration Load (0.2ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1
77073
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)
77074
+  (0.2ms) SAVEPOINT active_record_1
77075
+ SQL (0.2ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:59.079372"], ["updated_at", "2015-11-04 09:18:59.079372"]]
77076
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77077
+ Rendered notifications_mailer/notify_new_message.html.erb (1.4ms)
77078
+ SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]
77079
+
77080
+ NotificationsMailer#send_mail_for: processed outbound mail in 13.1ms
77081
+
77082
+ Sent mail to user27@sleede.com (7.3ms)
77083
+ Date: Wed, 04 Nov 2015 10:18:59 +0100
77084
+ From: contact@sleede.com
77085
+ To: user27@sleede.com
77086
+ Message-ID: <5639cd83181ae_66d93ff1b9c521d83925f@MBP-sleede-Nicolas.local.mail>
77087
+ Subject: notify_new_message
77088
+ Mime-Version: 1.0
77089
+ Content-Type: text/html;
77090
+ charset=UTF-8
77091
+ Content-Transfer-Encoding: 7bit
77092
+
77093
+
77094
+  (0.1ms) SAVEPOINT active_record_1
77095
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-04 09:18:59.102908"], ["updated_at", "2015-11-04 09:18:59.102908"]]
77096
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77097
+  (0.0ms) SAVEPOINT active_record_1
77098
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-04 09:18:59.104706"], ["updated_at", "2015-11-04 09:18:59.104706"]]
77099
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77100
+  (0.0ms) SAVEPOINT active_record_1
77101
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:59.106173"], ["updated_at", "2015-11-04 09:18:59.106173"]]
77102
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77103
+ Rendered notifications_mailer/notify_new_message.html.erb (0.0ms)
77104
+ SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 4]]
77105
+
77106
+ NotificationsMailer#send_mail_for: processed outbound mail in 1.4ms
77107
+
77108
+ Sent mail to user30@sleede.com (1.2ms)
77109
+ Date: Wed, 04 Nov 2015 10:18:59 +0100
77110
+ From: contact@sleede.com
77111
+ To: user30@sleede.com
77112
+ Message-ID: <5639cd831aa5d_66d93ff1b9c521d8393a@MBP-sleede-Nicolas.local.mail>
77113
+ Subject: notify_new_message
77114
+ Mime-Version: 1.0
77115
+ Content-Type: text/html;
77116
+ charset=UTF-8
77117
+ Content-Transfer-Encoding: 7bit
77118
+
77119
+
77120
+  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]]
77121
+ Wupee::NotificationTypeConfiguration Load (0.2ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1
77122
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)
77123
+  (0.0ms) SAVEPOINT active_record_1
77124
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:59.113383"], ["updated_at", "2015-11-04 09:18:59.113383"]]
77125
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77126
+ Rendered notifications_mailer/notify_new_message.html.erb (0.0ms)
77127
+ SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 5]]
77128
+
77129
+ NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms
77130
+
77131
+ Sent mail to user27@sleede.com (1.2ms)
77132
+ Date: Wed, 04 Nov 2015 10:18:59 +0100
77133
+ From: contact@sleede.com
77134
+ To: user27@sleede.com
77135
+ Message-ID: <5639cd831c5ee_66d93ff1b9c521d8394f@MBP-sleede-Nicolas.local.mail>
77136
+ Subject: notify_new_message
77137
+ Mime-Version: 1.0
77138
+ Content-Type: text/html;
77139
+ charset=UTF-8
77140
+ Content-Transfer-Encoding: 7bit
77141
+
77142
+
77143
+  (0.1ms) SAVEPOINT active_record_1
77144
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-04 09:18:59.118278"], ["updated_at", "2015-11-04 09:18:59.118278"]]
77145
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77146
+  (0.0ms) SAVEPOINT active_record_1
77147
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-04 09:18:59.120001"], ["updated_at", "2015-11-04 09:18:59.120001"]]
77148
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77149
+  (0.0ms) SAVEPOINT active_record_1
77150
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:59.121424"], ["updated_at", "2015-11-04 09:18:59.121424"]]
77151
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77152
+ Rendered notifications_mailer/notify_new_message.html.erb (0.0ms)
77153
+ SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 8]]
77154
+
77155
+ NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms
77156
+
77157
+ Sent mail to user30@sleede.com (1.3ms)
77158
+ Date: Wed, 04 Nov 2015 10:18:59 +0100
77159
+ From: contact@sleede.com
77160
+ To: user30@sleede.com
77161
+ Message-ID: <5639cd831e4ca_66d93ff1b9c521d8395ac@MBP-sleede-Nicolas.local.mail>
77162
+ Subject: notify_new_message
77163
+ Mime-Version: 1.0
77164
+ Content-Type: text/html;
77165
+ charset=UTF-8
77166
+ Content-Transfer-Encoding: 7bit
77167
+
77168
+
77169
+  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]]
77170
+  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"
77171
+ Wupee::NotificationTypeConfiguration Load (0.2ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1
77172
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)
77173
+  (0.0ms) SAVEPOINT active_record_1
77174
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:59.127924"], ["updated_at", "2015-11-04 09:18:59.127924"]]
77175
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77176
+ Rendered notifications_mailer/notify_new_message.html.erb (0.0ms)
77177
+ SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 9]]
77178
+
77179
+ NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms
77180
+
77181
+ Sent mail to user27@sleede.com (1.3ms)
77182
+ Date: Wed, 04 Nov 2015 10:18:59 +0100
77183
+ From: contact@sleede.com
77184
+ To: user27@sleede.com
77185
+ Message-ID: <5639cd831ff05_66d93ff1b9c521d8396a1@MBP-sleede-Nicolas.local.mail>
77186
+ Subject: notify_new_message
77187
+ Mime-Version: 1.0
77188
+ Content-Type: text/html;
77189
+ charset=UTF-8
77190
+ Content-Transfer-Encoding: 7bit
77191
+
77192
+
77193
+  (0.0ms) SAVEPOINT active_record_1
77194
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-04 09:18:59.132304"], ["updated_at", "2015-11-04 09:18:59.132304"]]
77195
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77196
+  (0.0ms) SAVEPOINT active_record_1
77197
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-04 09:18:59.133698"], ["updated_at", "2015-11-04 09:18:59.133698"]]
77198
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77199
+  (0.0ms) SAVEPOINT active_record_1
77200
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:59.135072"], ["updated_at", "2015-11-04 09:18:59.135072"]]
77201
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77202
+ Rendered notifications_mailer/notify_new_message.html.erb (0.0ms)
77203
+ SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 12]]
77204
+
77205
+ NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms
77206
+
77207
+ Sent mail to user30@sleede.com (1.2ms)
77208
+ Date: Wed, 04 Nov 2015 10:18:59 +0100
77209
+ From: contact@sleede.com
77210
+ To: user30@sleede.com
77211
+ Message-ID: <5639cd8321ae4_66d93ff1b9c521d839744@MBP-sleede-Nicolas.local.mail>
77212
+ Subject: notify_new_message
77213
+ Mime-Version: 1.0
77214
+ Content-Type: text/html;
77215
+ charset=UTF-8
77216
+ Content-Transfer-Encoding: 7bit
77217
+
77218
+
77219
+  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"
77220
+  (0.9ms) rollback transaction
77221
+  (0.1ms) begin transaction
77222
+  (0.0ms) rollback transaction
77223
+  (0.1ms) begin transaction
77224
+  (0.0ms) rollback transaction
77225
+  (0.1ms) begin transaction
77226
+  (0.0ms) rollback transaction
77227
+  (0.0ms) begin transaction
77228
+  (0.0ms) rollback transaction
77229
+  (0.0ms) begin transaction
77230
+  (0.0ms) rollback transaction
77231
+  (0.0ms) begin transaction
77232
+  (0.0ms) rollback transaction
77233
+  (0.0ms) begin transaction
77234
+  (0.0ms) rollback transaction
77235
+  (0.0ms) begin transaction
77236
+  (0.0ms) rollback transaction
77237
+  (0.0ms) begin transaction
77238
+  (0.0ms) SAVEPOINT active_record_1
77239
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-11-04 09:18:59.147463"], ["updated_at", "2015-11-04 09:18:59.147463"]]
77240
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
77241
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77242
+  (0.0ms) SAVEPOINT active_record_1
77243
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:59.149864"], ["updated_at", "2015-11-04 09:18:59.149864"]]
77244
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77245
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]
77246
+  (0.0ms) SAVEPOINT active_record_1
77247
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
77248
+ SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:59.152462"], ["updated_at", "2015-11-04 09:18:59.152462"]]
77249
+  (0.1ms) SELECT "users"."id" FROM "users"
77250
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
77251
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
77252
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:18:59.155088"], ["updated_at", "2015-11-04 09:18:59.155088"]]
77253
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77254
+  (0.0ms) SAVEPOINT active_record_1
77255
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:59.156611"], ["updated_at", "2015-11-04 09:18:59.156611"]]
77256
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77257
+  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"
77258
+  (0.0ms) SAVEPOINT active_record_1
77259
+ Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
77260
+ SQL (0.0ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]]
77261
+ Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
77262
+ SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]]
77263
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
77264
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77265
+  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"
77266
+  (0.7ms) rollback transaction
77267
+  (0.1ms) begin transaction
77268
+  (0.0ms) SAVEPOINT active_record_1
77269
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-11-04 09:18:59.163665"], ["updated_at", "2015-11-04 09:18:59.163665"]]
77270
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
77271
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77272
+  (0.0ms) SAVEPOINT active_record_1
77273
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1
77274
+ SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-04 09:18:59.166208"], ["updated_at", "2015-11-04 09:18:59.166208"]]
77275
+  (0.1ms) SELECT "users"."id" FROM "users"
77276
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
77277
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
77278
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:18:59.168789"], ["updated_at", "2015-11-04 09:18:59.168789"]]
77279
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77280
+  (0.0ms) SAVEPOINT active_record_1
77281
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
77282
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
77283
+  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"
77284
+  (0.0ms) SAVEPOINT active_record_1
77285
+ Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
77286
+ Wupee::NotificationTypeConfiguration Load (0.0ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
77287
+ SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]]
77288
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
77289
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77290
+  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"
77291
+  (0.9ms) rollback transaction
77292
+  (0.1ms) begin transaction
77293
+  (0.2ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"
77294
+  (0.1ms) rollback transaction
77295
+  (0.1ms) begin transaction
77296
+  (0.1ms) SAVEPOINT active_record_1
77297
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
77298
+ SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:59.180694"], ["updated_at", "2015-11-04 09:18:59.180694"]]
77299
+  (0.1ms) SELECT "users"."id" FROM "users"
77300
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77301
+  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"
77302
+  (0.0ms) SAVEPOINT active_record_1
77303
+ SQL (1.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-11-04 09:18:59.184131"], ["updated_at", "2015-11-04 09:18:59.184131"]]
77304
+  (0.2ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
77305
+ Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
77306
+ Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
77307
+ SQL (0.6ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-04 09:18:59.193320"], ["updated_at", "2015-11-04 09:18:59.193320"]]
77308
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77309
+  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"
77310
+ Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1
77311
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
77312
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
77313
+  (0.8ms) rollback transaction
77314
+  (0.1ms) begin transaction
77315
+  (0.0ms) rollback transaction
77316
+  (0.1ms) begin transaction
77317
+  (0.0ms) rollback transaction
77318
+  (0.1ms) begin transaction
77319
+  (0.0ms) rollback transaction
77320
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
77321
+  (0.1ms) begin transaction
77322
+  (0.0ms) SAVEPOINT active_record_1
77323
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-11-04 09:19:44.635680"], ["updated_at", "2015-11-04 09:19:44.635680"]]
77324
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
77325
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77326
+  (0.0ms) SAVEPOINT active_record_1
77327
+ SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:44.645849"], ["updated_at", "2015-11-04 09:19:44.645849"]]
77328
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77329
+ Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]
77330
+  (0.0ms) SAVEPOINT active_record_1
77331
+ Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
77332
+ SQL (0.4ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:44.658677"], ["updated_at", "2015-11-04 09:19:44.658677"]]
77333
+  (0.1ms) SELECT "users"."id" FROM "users"
77334
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
77335
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
77336
+ SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:19:44.670770"], ["updated_at", "2015-11-04 09:19:44.670770"]]
77337
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77338
+  (0.0ms) SAVEPOINT active_record_1
77339
+ SQL (0.3ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:44.673976"], ["updated_at", "2015-11-04 09:19:44.673976"]]
77340
+  (0.2ms) RELEASE SAVEPOINT active_record_1
77341
+ Processing by Wupee::Api::NotificationsController#index as JSON
77342
+ Rendered wupee/api/notifications/index.json.jbuilder (0.2ms)
77343
+ Completed 200 OK in 14ms (Views: 8.8ms | ActiveRecord: 0.0ms)
77344
+  (8.9ms) rollback transaction
77345
+  (0.1ms) begin transaction
77346
+  (0.1ms) SAVEPOINT active_record_1
77347
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-11-04 09:19:44.718738"], ["updated_at", "2015-11-04 09:19:44.718738"]]
77348
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
77349
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77350
+  (0.0ms) SAVEPOINT active_record_1
77351
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:44.721271"], ["updated_at", "2015-11-04 09:19:44.721271"]]
77352
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77353
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]
77354
+  (0.0ms) SAVEPOINT active_record_1
77355
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
77356
+ SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:44.724167"], ["updated_at", "2015-11-04 09:19:44.724167"]]
77357
+  (0.1ms) SELECT "users"."id" FROM "users"
77358
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
77359
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
77360
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:19:44.726930"], ["updated_at", "2015-11-04 09:19:44.726930"]]
77361
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77362
+  (0.0ms) SAVEPOINT active_record_1
77363
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:44.728547"], ["updated_at", "2015-11-04 09:19:44.728547"]]
77364
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77365
+ Processing by Wupee::Api::NotificationsController#index as JSON
77366
+ Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
77367
+ Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
77368
+ Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
77369
+ Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.3ms)
77370
+ Rendered wupee/api/notifications/_notification.json.jbuilder (3.3ms)
77371
+ Rendered wupee/api/notifications/index.json.jbuilder (8.8ms)
77372
+ Completed 200 OK in 10ms (Views: 8.9ms | ActiveRecord: 0.3ms)
77373
+  (0.8ms) rollback transaction
77374
+  (0.1ms) begin transaction
77375
+  (0.1ms) SAVEPOINT active_record_1
77376
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-11-04 09:19:44.755540"], ["updated_at", "2015-11-04 09:19:44.755540"]]
77377
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
77378
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77379
+  (0.0ms) SAVEPOINT active_record_1
77380
+ SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:44.758207"], ["updated_at", "2015-11-04 09:19:44.758207"]]
77381
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77382
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]
77383
+  (0.0ms) SAVEPOINT active_record_1
77384
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
77385
+ SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:44.761805"], ["updated_at", "2015-11-04 09:19:44.761805"]]
77386
+  (0.1ms) SELECT "users"."id" FROM "users"
77387
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
77388
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
77389
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:19:44.764848"], ["updated_at", "2015-11-04 09:19:44.764848"]]
77390
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77391
+  (0.0ms) SAVEPOINT active_record_1
77392
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:44.766517"], ["updated_at", "2015-11-04 09:19:44.766517"]]
77393
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77394
+ Processing by Wupee::Api::NotificationsController#show as JSON
77395
+ Parameters: {"id"=>"1"}
77396
+ Wupee::Notification Load (0.3ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]]
77397
+ Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
77398
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
77399
+ Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.1ms)
77400
+ Rendered wupee/api/notifications/_notification.json.jbuilder (2.3ms)
77401
+ Rendered wupee/api/notifications/show.json.jbuilder (3.8ms)
77402
+ Completed 200 OK in 12ms (Views: 5.6ms | ActiveRecord: 0.4ms)
77403
+  (0.9ms) rollback transaction
77404
+  (0.1ms) begin transaction
77405
+  (0.1ms) SAVEPOINT active_record_1
77406
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-11-04 09:19:44.788918"], ["updated_at", "2015-11-04 09:19:44.788918"]]
77407
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
77408
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77409
+  (0.0ms) SAVEPOINT active_record_1
77410
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:44.791022"], ["updated_at", "2015-11-04 09:19:44.791022"]]
77411
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77412
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]
77413
+  (0.0ms) SAVEPOINT active_record_1
77414
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
77415
+ SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:44.793231"], ["updated_at", "2015-11-04 09:19:44.793231"]]
77416
+  (0.1ms) SELECT "users"."id" FROM "users"
77417
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
77418
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
77419
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:19:44.795698"], ["updated_at", "2015-11-04 09:19:44.795698"]]
77420
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77421
+  (0.0ms) SAVEPOINT active_record_1
77422
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:44.797441"], ["updated_at", "2015-11-04 09:19:44.797441"]]
77423
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77424
+ Processing by Wupee::Api::NotificationsController#update as JSON
77425
+ Parameters: {"id"=>"1"}
77426
+ Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]]
77427
+ SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]
77428
+ Message Load (0.0ms) SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]]
77429
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
77430
+ Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.1ms)
77431
+ Rendered wupee/api/notifications/_notification.json.jbuilder (1.4ms)
77432
+ Rendered wupee/api/notifications/show.json.jbuilder (2.1ms)
77433
+ Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.2ms)
77434
+  (0.9ms) rollback transaction
77435
+  (0.1ms) begin transaction
77436
+  (0.1ms) SAVEPOINT active_record_1
77437
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-11-04 09:19:44.811128"], ["updated_at", "2015-11-04 09:19:44.811128"]]
77438
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
77439
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77440
+  (0.0ms) SAVEPOINT active_record_1
77441
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:44.813534"], ["updated_at", "2015-11-04 09:19:44.813534"]]
77442
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77443
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]
77444
+  (0.0ms) SAVEPOINT active_record_1
77445
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
77446
+ SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:44.816574"], ["updated_at", "2015-11-04 09:19:44.816574"]]
77447
+  (0.1ms) SELECT "users"."id" FROM "users"
77448
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
77449
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
77450
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:19:44.819945"], ["updated_at", "2015-11-04 09:19:44.819945"]]
77451
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77452
+  (0.0ms) SAVEPOINT active_record_1
77453
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:44.821752"], ["updated_at", "2015-11-04 09:19:44.821752"]]
77454
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77455
+ Processing by Wupee::Api::NotificationsController#update_all as JSON
77456
+ Wupee::Notification Load (0.3ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]]
77457
+ SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]
77458
+ Completed 204 No Content in 7ms (ActiveRecord: 0.4ms)
77459
+ Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]]
77460
+  (1.4ms) rollback transaction
77461
+  (0.1ms) begin transaction
77462
+  (0.1ms) SAVEPOINT active_record_1
77463
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1
77464
+ SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-04 09:19:44.989595"], ["updated_at", "2015-11-04 09:19:44.989595"]]
77465
+  (0.1ms) SELECT "users"."id" FROM "users"
77466
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77467
+  (0.0ms) SAVEPOINT active_record_1
77468
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-11-04 09:19:44.991799"], ["updated_at", "2015-11-04 09:19:44.991799"]]
77469
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
77470
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
77471
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
77472
+ SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-04 09:19:44.994745"], ["updated_at", "2015-11-04 09:19:44.994745"]]
77473
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77474
+  (0.0ms) SAVEPOINT active_record_1
77475
+ SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:44.996756"], ["updated_at", "2015-11-04 09:19:44.996756"]]
77476
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77477
+  (0.0ms) SAVEPOINT active_record_1
77478
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:44.998528"], ["updated_at", "2015-11-04 09:19:44.998528"]]
77479
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77480
+  (0.7ms) rollback transaction
77481
+  (0.1ms) begin transaction
77482
+  (0.1ms) SAVEPOINT active_record_1
77483
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1
77484
+ SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-04 09:19:45.004738"], ["updated_at", "2015-11-04 09:19:45.004738"]]
77485
+  (0.1ms) SELECT "users"."id" FROM "users"
77486
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77487
+  (0.0ms) SAVEPOINT active_record_1
77488
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-11-04 09:19:45.007063"], ["updated_at", "2015-11-04 09:19:45.007063"]]
77489
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
77490
+ Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
77491
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
77492
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-04 09:19:45.010141"], ["updated_at", "2015-11-04 09:19:45.010141"]]
77493
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77494
+  (0.0ms) SAVEPOINT active_record_1
77495
+ SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:45.011823"], ["updated_at", "2015-11-04 09:19:45.011823"]]
77496
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77497
+  (0.0ms) SAVEPOINT active_record_1
77498
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:45.013589"], ["updated_at", "2015-11-04 09:19:45.013589"]]
77499
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77500
+ Rendered notifications_mailer/abc.html.erb (1.5ms)
77501
+ SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]
77502
+
77503
+ NotificationsMailer#send_mail_for: processed outbound mail in 17.0ms
77504
+
77505
+ Sent mail to user7@sleede.com (7.4ms)
77506
+ Date: Wed, 04 Nov 2015 10:19:45 +0100
77507
+ From: contact@sleede.com
77508
+ To: user7@sleede.com
77509
+ Message-ID: <5639cdb18fb1_66e53fcc9d0601e032812@MBP-sleede-Nicolas.local.mail>
77510
+ Subject: abc hello world
77511
+ Mime-Version: 1.0
77512
+ Content-Type: text/html;
77513
+ charset=UTF-8
77514
+ Content-Transfer-Encoding: 7bit
77515
+
77516
+
77517
+  (0.8ms) rollback transaction
77518
+  (0.1ms) begin transaction
77519
+  (0.1ms) SAVEPOINT active_record_1
77520
+ Wupee::NotificationType Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1
77521
+ SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-04 09:19:45.044681"], ["updated_at", "2015-11-04 09:19:45.044681"]]
77522
+  (0.1ms) SELECT "users"."id" FROM "users"
77523
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77524
+  (0.0ms) SAVEPOINT active_record_1
77525
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-11-04 09:19:45.047405"], ["updated_at", "2015-11-04 09:19:45.047405"]]
77526
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
77527
+ Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
77528
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
77529
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-04 09:19:45.050761"], ["updated_at", "2015-11-04 09:19:45.050761"]]
77530
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77531
+  (0.1ms) SAVEPOINT active_record_1
77532
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:45.052744"], ["updated_at", "2015-11-04 09:19:45.052744"]]
77533
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77534
+  (0.1ms) SAVEPOINT active_record_1
77535
+ SQL (0.3ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:45.060240"], ["updated_at", "2015-11-04 09:19:45.060240"]]
77536
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77537
+ Rendered notifications_mailer/abc.html.erb (0.0ms)
77538
+ SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]
77539
+
77540
+ NotificationsMailer#send_mail_for: processed outbound mail in 1.7ms
77541
+
77542
+ Sent mail to user8@sleede.com (1.6ms)
77543
+ Date: Wed, 04 Nov 2015 10:19:45 +0100
77544
+ From: contact@sleede.com
77545
+ To: user8@sleede.com
77546
+ Message-ID: <5639cdb110213_66e53fcc9d0601e032950@MBP-sleede-Nicolas.local.mail>
77547
+ Subject: abc hello world
77548
+ Mime-Version: 1.0
77549
+ Content-Type: text/html;
77550
+ charset=UTF-8
77551
+ Content-Transfer-Encoding: 7bit
77552
+
77553
+
77554
+  (0.8ms) rollback transaction
77555
+  (0.1ms) begin transaction
77556
+  (0.0ms) SAVEPOINT active_record_1
77557
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1
77558
+ SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-04 09:19:45.070842"], ["updated_at", "2015-11-04 09:19:45.070842"]]
77559
+  (0.1ms) SELECT "users"."id" FROM "users"
77560
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77561
+  (0.0ms) SAVEPOINT active_record_1
77562
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-11-04 09:19:45.073284"], ["updated_at", "2015-11-04 09:19:45.073284"]]
77563
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
77564
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
77565
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
77566
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-04 09:19:45.076458"], ["updated_at", "2015-11-04 09:19:45.076458"]]
77567
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77568
+  (0.1ms) SAVEPOINT active_record_1
77569
+ SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:45.078685"], ["updated_at", "2015-11-04 09:19:45.078685"]]
77570
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77571
+  (0.0ms) SAVEPOINT active_record_1
77572
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:45.080407"], ["updated_at", "2015-11-04 09:19:45.080407"]]
77573
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77574
+ Rendered notifications_mailer/abc.html.erb (0.0ms)
77575
+ SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]
77576
+
77577
+ NotificationsMailer#send_mail_for: processed outbound mail in 1.4ms
77578
+
77579
+ Sent mail to user9@sleede.com (1.9ms)
77580
+ Date: Wed, 04 Nov 2015 10:19:45 +0100
77581
+ From: contact@sleede.com
77582
+ To: user9@sleede.com
77583
+ Message-ID: <5639cdb1146e2_66e53fcc9d0601e033012@MBP-sleede-Nicolas.local.mail>
77584
+ Subject: abc hello world
77585
+ Mime-Version: 1.0
77586
+ Content-Type: text/html;
77587
+ charset=UTF-8
77588
+ Content-Transfer-Encoding: 7bit
77589
+
77590
+
77591
+  (0.9ms) rollback transaction
77592
+  (0.1ms) begin transaction
77593
+  (0.0ms) SAVEPOINT active_record_1
77594
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1
77595
+ SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-04 09:19:45.088630"], ["updated_at", "2015-11-04 09:19:45.088630"]]
77596
+  (0.1ms) SELECT "users"."id" FROM "users"
77597
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77598
+  (0.1ms) SAVEPOINT active_record_1
77599
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-11-04 09:19:45.092202"], ["updated_at", "2015-11-04 09:19:45.092202"]]
77600
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
77601
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
77602
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
77603
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-04 09:19:45.095626"], ["updated_at", "2015-11-04 09:19:45.095626"]]
77604
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77605
+  (0.1ms) SAVEPOINT active_record_1
77606
+ SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:45.098134"], ["updated_at", "2015-11-04 09:19:45.098134"]]
77607
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77608
+  (0.0ms) SAVEPOINT active_record_1
77609
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:45.100178"], ["updated_at", "2015-11-04 09:19:45.100178"]]
77610
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77611
+ Rendered notifications_mailer/abc.html.erb (0.0ms)
77612
+ SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]
77613
+
77614
+ NotificationsMailer#send_mail_for: processed outbound mail in 3.5ms
77615
+
77616
+ Sent mail to user10@sleede.com (4.1ms)
77617
+ Date: Wed, 04 Nov 2015 10:19:45 +0100
77618
+ From: contact@sleede.com
77619
+ To: user10@sleede.com
77620
+ Message-ID: <5639cdb11a332_66e53fcc9d0601e0331d5@MBP-sleede-Nicolas.local.mail>
77621
+ Subject: abc hello world
77622
+ Mime-Version: 1.0
77623
+ Content-Type: text/html;
77624
+ charset=UTF-8
77625
+ Content-Transfer-Encoding: 7bit
77626
+
77627
+
77628
+  (1.5ms) rollback transaction
77629
+  (0.1ms) begin transaction
77630
+  (0.1ms) SAVEPOINT active_record_1
77631
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:45.114705"], ["updated_at", "2015-11-04 09:19:45.114705"]]
77632
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77633
+  (0.0ms) SAVEPOINT active_record_1
77634
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-11-04 09:19:45.116805"], ["updated_at", "2015-11-04 09:19:45.116805"]]
77635
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
77636
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77637
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]
77638
+  (0.0ms) SAVEPOINT active_record_1
77639
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
77640
+ SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.119933"], ["updated_at", "2015-11-04 09:19:45.119933"]]
77641
+  (0.0ms) SELECT "users"."id" FROM "users"
77642
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
77643
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
77644
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:19:45.122682"], ["updated_at", "2015-11-04 09:19:45.122682"]]
77645
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77646
+  (0.0ms) SAVEPOINT active_record_1
77647
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:45.124416"], ["updated_at", "2015-11-04 09:19:45.124416"]]
77648
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77649
+  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"
77650
+  (0.0ms) SAVEPOINT active_record_1
77651
+ Wupee::Notification Load (0.2ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 1], ["attached_object_type", "Message"]]
77652
+ SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]]
77653
+ SQL (0.1ms) DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]]
77654
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77655
+  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"
77656
+  (0.7ms) rollback transaction
77657
+  (0.0ms) begin transaction
77658
+  (0.0ms) SAVEPOINT active_record_1
77659
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:45.133960"], ["updated_at", "2015-11-04 09:19:45.133960"]]
77660
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77661
+  (0.0ms) SAVEPOINT active_record_1
77662
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-11-04 09:19:45.135621"], ["updated_at", "2015-11-04 09:19:45.135621"]]
77663
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
77664
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77665
+  (0.0ms) SAVEPOINT active_record_1
77666
+ Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
77667
+ SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.138164"], ["updated_at", "2015-11-04 09:19:45.138164"]]
77668
+  (0.0ms) SELECT "users"."id" FROM "users"
77669
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
77670
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
77671
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:19:45.140370"], ["updated_at", "2015-11-04 09:19:45.140370"]]
77672
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77673
+  (0.0ms) SAVEPOINT active_record_1
77674
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-11-04 09:19:45.142024"], ["updated_at", "2015-11-04 09:19:45.142024"]]
77675
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
77676
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
77677
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1
77678
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-04 09:19:45.144838"], ["updated_at", "2015-11-04 09:19:45.144838"]]
77679
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77680
+  (0.0ms) SAVEPOINT active_record_1
77681
+ SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:45.146279"], ["updated_at", "2015-11-04 09:19:45.146279"]]
77682
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77683
+ Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]
77684
+  (0.1ms) SAVEPOINT active_record_1
77685
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:45.149944"], ["updated_at", "2015-11-04 09:19:45.149944"]]
77686
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77687
+ SQL (0.1ms) UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]
77688
+  (1.0ms) rollback transaction
77689
+  (0.1ms) begin transaction
77690
+  (0.1ms) SAVEPOINT active_record_1
77691
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:45.154566"], ["updated_at", "2015-11-04 09:19:45.154566"]]
77692
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77693
+  (0.0ms) SAVEPOINT active_record_1
77694
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-11-04 09:19:45.156539"], ["updated_at", "2015-11-04 09:19:45.156539"]]
77695
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
77696
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77697
+  (0.8ms) SAVEPOINT active_record_1
77698
+ Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
77699
+ SQL (0.2ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.163344"], ["updated_at", "2015-11-04 09:19:45.163344"]]
77700
+  (0.2ms) SELECT "users"."id" FROM "users"
77701
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
77702
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
77703
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:19:45.170618"], ["updated_at", "2015-11-04 09:19:45.170618"]]
77704
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77705
+  (0.0ms) SAVEPOINT active_record_1
77706
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-11-04 09:19:45.172550"], ["updated_at", "2015-11-04 09:19:45.172550"]]
77707
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
77708
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
77709
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1
77710
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-04 09:19:45.174908"], ["updated_at", "2015-11-04 09:19:45.174908"]]
77711
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77712
+  (0.0ms) SAVEPOINT active_record_1
77713
+ SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:45.176226"], ["updated_at", "2015-11-04 09:19:45.176226"]]
77714
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77715
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]
77716
+  (0.0ms) SAVEPOINT active_record_1
77717
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:45.178301"], ["updated_at", "2015-11-04 09:19:45.178301"]]
77718
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77719
+ SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]
77720
+  (0.8ms) rollback transaction
77721
+  (0.1ms) begin transaction
77722
+  (0.0ms) SAVEPOINT active_record_1
77723
+ SQL (0.4ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:45.181704"], ["updated_at", "2015-11-04 09:19:45.181704"]]
77724
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77725
+  (0.0ms) SAVEPOINT active_record_1
77726
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-11-04 09:19:45.183549"], ["updated_at", "2015-11-04 09:19:45.183549"]]
77727
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
77728
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77729
+  (0.0ms) SAVEPOINT active_record_1
77730
+ Wupee::NotificationType Exists (0.0ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
77731
+ SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.185782"], ["updated_at", "2015-11-04 09:19:45.185782"]]
77732
+  (0.0ms) SELECT "users"."id" FROM "users"
77733
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
77734
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
77735
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:19:45.188186"], ["updated_at", "2015-11-04 09:19:45.188186"]]
77736
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77737
+  (0.6ms) rollback transaction
77738
+  (0.1ms) begin transaction
77739
+  (0.1ms) SAVEPOINT active_record_1
77740
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:45.194652"], ["updated_at", "2015-11-04 09:19:45.194652"]]
77741
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77742
+  (0.1ms) SAVEPOINT active_record_1
77743
+ SQL (0.5ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-11-04 09:19:45.196877"], ["updated_at", "2015-11-04 09:19:45.196877"]]
77744
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
77745
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77746
+  (0.0ms) SAVEPOINT active_record_1
77747
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
77748
+ SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.200709"], ["updated_at", "2015-11-04 09:19:45.200709"]]
77749
+  (0.1ms) SELECT "users"."id" FROM "users"
77750
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
77751
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
77752
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:19:45.204393"], ["updated_at", "2015-11-04 09:19:45.204393"]]
77753
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77754
+  (0.8ms) rollback transaction
77755
+  (0.3ms) begin transaction
77756
+  (0.2ms) SAVEPOINT active_record_1
77757
+ SQL (0.7ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:45.213862"], ["updated_at", "2015-11-04 09:19:45.213862"]]
77758
+  (0.2ms) RELEASE SAVEPOINT active_record_1
77759
+  (0.1ms) SAVEPOINT active_record_1
77760
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-11-04 09:19:45.219327"], ["updated_at", "2015-11-04 09:19:45.219327"]]
77761
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
77762
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77763
+  (0.0ms) SAVEPOINT active_record_1
77764
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
77765
+ SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.222219"], ["updated_at", "2015-11-04 09:19:45.222219"]]
77766
+  (0.1ms) SELECT "users"."id" FROM "users"
77767
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
77768
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
77769
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:19:45.224906"], ["updated_at", "2015-11-04 09:19:45.224906"]]
77770
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77771
+  (0.0ms) SAVEPOINT active_record_1
77772
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-11-04 09:19:45.226501"], ["updated_at", "2015-11-04 09:19:45.226501"]]
77773
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
77774
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
77775
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1
77776
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-04 09:19:45.228734"], ["updated_at", "2015-11-04 09:19:45.228734"]]
77777
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77778
+  (0.0ms) SAVEPOINT active_record_1
77779
+ SQL (0.1ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:45.230377"], ["updated_at", "2015-11-04 09:19:45.230377"]]
77780
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77781
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]
77782
+  (0.0ms) SAVEPOINT active_record_1
77783
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:45.232373"], ["updated_at", "2015-11-04 09:19:45.232373"]]
77784
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77785
+  (0.8ms) rollback transaction
77786
+  (0.1ms) begin transaction
77787
+  (0.0ms) SAVEPOINT active_record_1
77788
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:45.236544"], ["updated_at", "2015-11-04 09:19:45.236544"]]
77789
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77790
+  (0.0ms) SAVEPOINT active_record_1
77791
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-11-04 09:19:45.238443"], ["updated_at", "2015-11-04 09:19:45.238443"]]
77792
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
77793
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77794
+  (0.0ms) SAVEPOINT active_record_1
77795
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
77796
+ SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.240994"], ["updated_at", "2015-11-04 09:19:45.240994"]]
77797
+  (0.1ms) SELECT "users"."id" FROM "users"
77798
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
77799
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
77800
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:19:45.243628"], ["updated_at", "2015-11-04 09:19:45.243628"]]
77801
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77802
+  (0.0ms) SAVEPOINT active_record_1
77803
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-11-04 09:19:45.245305"], ["updated_at", "2015-11-04 09:19:45.245305"]]
77804
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
77805
+ Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
77806
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1
77807
+ SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-04 09:19:45.250043"], ["updated_at", "2015-11-04 09:19:45.250043"]]
77808
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77809
+  (0.1ms) SAVEPOINT active_record_1
77810
+ SQL (0.2ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:45.252415"], ["updated_at", "2015-11-04 09:19:45.252415"]]
77811
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77812
+ Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]
77813
+  (0.0ms) SAVEPOINT active_record_1
77814
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:45.255803"], ["updated_at", "2015-11-04 09:19:45.255803"]]
77815
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77816
+  (1.5ms) rollback transaction
77817
+  (0.1ms) begin transaction
77818
+  (0.2ms) SAVEPOINT active_record_1
77819
+ SQL (0.7ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-11-04 09:19:45.263821"], ["updated_at", "2015-11-04 09:19:45.263821"]]
77820
+  (0.5ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
77821
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77822
+  (0.1ms) SAVEPOINT active_record_1
77823
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
77824
+ SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.270138"], ["updated_at", "2015-11-04 09:19:45.270138"]]
77825
+  (0.1ms) SELECT "users"."id" FROM "users"
77826
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
77827
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
77828
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:19:45.273203"], ["updated_at", "2015-11-04 09:19:45.273203"]]
77829
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77830
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1
77831
+  (0.7ms) rollback transaction
77832
+  (0.1ms) begin transaction
77833
+  (0.0ms) SAVEPOINT active_record_1
77834
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-11-04 09:19:45.278544"], ["updated_at", "2015-11-04 09:19:45.278544"]]
77835
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
77836
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77837
+  (0.0ms) SAVEPOINT active_record_1
77838
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
77839
+ SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.281190"], ["updated_at", "2015-11-04 09:19:45.281190"]]
77840
+  (0.1ms) SELECT "users"."id" FROM "users"
77841
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
77842
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
77843
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:19:45.284195"], ["updated_at", "2015-11-04 09:19:45.284195"]]
77844
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77845
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1
77846
+  (1.0ms) rollback transaction
77847
+  (0.1ms) begin transaction
77848
+  (0.1ms) SAVEPOINT active_record_1
77849
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-11-04 09:19:45.289170"], ["updated_at", "2015-11-04 09:19:45.289170"]]
77850
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
77851
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77852
+  (0.0ms) SAVEPOINT active_record_1
77853
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
77854
+ SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.291740"], ["updated_at", "2015-11-04 09:19:45.291740"]]
77855
+  (0.1ms) SELECT "users"."id" FROM "users"
77856
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
77857
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
77858
+ SQL (0.3ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:19:45.295445"], ["updated_at", "2015-11-04 09:19:45.295445"]]
77859
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77860
+  (0.2ms) SAVEPOINT active_record_1
77861
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
77862
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
77863
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
77864
+  (0.8ms) rollback transaction
77865
+  (0.1ms) begin transaction
77866
+  (0.1ms) SAVEPOINT active_record_1
77867
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-11-04 09:19:45.305868"], ["updated_at", "2015-11-04 09:19:45.305868"]]
77868
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
77869
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77870
+  (0.0ms) SAVEPOINT active_record_1
77871
+ Wupee::NotificationType Exists (0.7ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
77872
+ SQL (0.8ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.311509"], ["updated_at", "2015-11-04 09:19:45.311509"]]
77873
+  (0.4ms) SELECT "users"."id" FROM "users"
77874
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
77875
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
77876
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:19:45.319882"], ["updated_at", "2015-11-04 09:19:45.319882"]]
77877
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77878
+  (0.8ms) rollback transaction
77879
+  (0.1ms) begin transaction
77880
+  (0.0ms) SAVEPOINT active_record_1
77881
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-11-04 09:19:45.323625"], ["updated_at", "2015-11-04 09:19:45.323625"]]
77882
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
77883
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77884
+  (0.0ms) SAVEPOINT active_record_1
77885
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
77886
+ SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.326680"], ["updated_at", "2015-11-04 09:19:45.326680"]]
77887
+  (0.1ms) SELECT "users"."id" FROM "users"
77888
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
77889
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
77890
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:19:45.329909"], ["updated_at", "2015-11-04 09:19:45.329909"]]
77891
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77892
+  (0.7ms) rollback transaction
77893
+  (0.1ms) begin transaction
77894
+  (0.0ms) SAVEPOINT active_record_1
77895
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
77896
+ SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.334128"], ["updated_at", "2015-11-04 09:19:45.334128"]]
77897
+  (0.1ms) SELECT "users"."id" FROM "users"
77898
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77899
+ Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]
77900
+  (0.5ms) rollback transaction
77901
+  (0.1ms) begin transaction
77902
+  (0.0ms) SAVEPOINT active_record_1
77903
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
77904
+ SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.338449"], ["updated_at", "2015-11-04 09:19:45.338449"]]
77905
+  (0.1ms) SELECT "users"."id" FROM "users"
77906
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77907
+  (0.0ms) SAVEPOINT active_record_1
77908
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-11-04 09:19:45.340359"], ["updated_at", "2015-11-04 09:19:45.340359"]]
77909
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
77910
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
77911
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
77912
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-04 09:19:45.342991"], ["updated_at", "2015-11-04 09:19:45.342991"]]
77913
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77914
+  (0.0ms) SAVEPOINT active_record_1
77915
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-11-04 09:19:45.344436"], ["updated_at", "2015-11-04 09:19:45.344436"]]
77916
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
77917
+ Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
77918
+ Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1
77919
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-04 09:19:45.349164"], ["updated_at", "2015-11-04 09:19:45.349164"]]
77920
+  (0.4ms) RELEASE SAVEPOINT active_record_1
77921
+  (0.1ms) SAVEPOINT active_record_1
77922
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-11-04 09:19:45.352384"], ["updated_at", "2015-11-04 09:19:45.352384"]]
77923
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
77924
+ Wupee::NotificationType Load (0.1ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
77925
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1
77926
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-11-04 09:19:45.356138"], ["updated_at", "2015-11-04 09:19:45.356138"]]
77927
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77928
+  (0.0ms) SAVEPOINT active_record_1
77929
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-11-04 09:19:45.358444"], ["updated_at", "2015-11-04 09:19:45.358444"]]
77930
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
77931
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
77932
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1
77933
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-11-04 09:19:45.361022"], ["updated_at", "2015-11-04 09:19:45.361022"]]
77934
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77935
+ Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1
77936
+  (0.0ms) SAVEPOINT active_record_1
77937
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
77938
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1
77939
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
77940
+ SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-11-04 09:19:45.364689"], ["id", 2]]
77941
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77942
+ Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1
77943
+  (0.0ms) SAVEPOINT active_record_1
77944
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
77945
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1
77946
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
77947
+ SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-11-04 09:19:45.368043"], ["id", 3]]
77948
+  (0.3ms) RELEASE SAVEPOINT active_record_1
77949
+ Wupee::NotificationTypeConfiguration Load (0.5ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1
77950
+  (0.3ms) SAVEPOINT active_record_1
77951
+ Wupee::NotificationType Load (0.3ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
77952
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1
77953
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
77954
+ SQL (0.1ms) UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-11-04 09:19:45.381190"], ["id", 4]]
77955
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77956
+ Wupee::NotificationTypeConfiguration Load (0.2ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1
77957
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)
77958
+  (0.1ms) SAVEPOINT active_record_1
77959
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:45.388303"], ["updated_at", "2015-11-04 09:19:45.388303"]]
77960
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77961
+ Rendered notifications_mailer/notify_new_message.html.erb (0.3ms)
77962
+ SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]]
77963
+
77964
+ NotificationsMailer#send_mail_for: processed outbound mail in 10.8ms
77965
+
77966
+ Sent mail to user27@sleede.com (1.3ms)
77967
+ Date: Wed, 04 Nov 2015 10:19:45 +0100
77968
+ From: contact@sleede.com
77969
+ To: user27@sleede.com
77970
+ Message-ID: <5639cdb161ec6_66e53fcc9d0601e033286@MBP-sleede-Nicolas.local.mail>
77971
+ Subject: notify_new_message
77972
+ Mime-Version: 1.0
77973
+ Content-Type: text/html;
77974
+ charset=UTF-8
77975
+ Content-Transfer-Encoding: 7bit
77976
+
77977
+
77978
+  (0.0ms) SAVEPOINT active_record_1
77979
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-04 09:19:45.402722"], ["updated_at", "2015-11-04 09:19:45.402722"]]
77980
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77981
+  (0.0ms) SAVEPOINT active_record_1
77982
+ SQL (0.0ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-04 09:19:45.404405"], ["updated_at", "2015-11-04 09:19:45.404405"]]
77983
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77984
+  (0.0ms) SAVEPOINT active_record_1
77985
+ SQL (0.0ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:45.405712"], ["updated_at", "2015-11-04 09:19:45.405712"]]
77986
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77987
+ Rendered notifications_mailer/notify_new_message.html.erb (0.0ms)
77988
+ SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 4]]
77989
+
77990
+ NotificationsMailer#send_mail_for: processed outbound mail in 1.1ms
77991
+
77992
+ Sent mail to user30@sleede.com (1.3ms)
77993
+ Date: Wed, 04 Nov 2015 10:19:45 +0100
77994
+ From: contact@sleede.com
77995
+ To: user30@sleede.com
77996
+ Message-ID: <5639cdb163aae_66e53fcc9d0601e0333c3@MBP-sleede-Nicolas.local.mail>
77997
+ Subject: notify_new_message
77998
+ Mime-Version: 1.0
77999
+ Content-Type: text/html;
78000
+ charset=UTF-8
78001
+ Content-Transfer-Encoding: 7bit
78002
+
78003
+
78004
+  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]]
78005
+ Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1
78006
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)
78007
+  (0.0ms) SAVEPOINT active_record_1
78008
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:45.411806"], ["updated_at", "2015-11-04 09:19:45.411806"]]
78009
+  (0.0ms) RELEASE SAVEPOINT active_record_1
78010
+ Rendered notifications_mailer/notify_new_message.html.erb (0.0ms)
78011
+ SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 5]]
78012
+
78013
+ NotificationsMailer#send_mail_for: processed outbound mail in 1.1ms
78014
+
78015
+ Sent mail to user27@sleede.com (1.3ms)
78016
+ Date: Wed, 04 Nov 2015 10:19:45 +0100
78017
+ From: contact@sleede.com
78018
+ To: user27@sleede.com
78019
+ Message-ID: <5639cdb1652bc_66e53fcc9d0601e0334cc@MBP-sleede-Nicolas.local.mail>
78020
+ Subject: notify_new_message
78021
+ Mime-Version: 1.0
78022
+ Content-Type: text/html;
78023
+ charset=UTF-8
78024
+ Content-Transfer-Encoding: 7bit
78025
+
78026
+
78027
+  (0.0ms) SAVEPOINT active_record_1
78028
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-04 09:19:45.416026"], ["updated_at", "2015-11-04 09:19:45.416026"]]
78029
+  (0.0ms) RELEASE SAVEPOINT active_record_1
78030
+  (0.0ms) SAVEPOINT active_record_1
78031
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-04 09:19:45.417478"], ["updated_at", "2015-11-04 09:19:45.417478"]]
78032
+  (0.0ms) RELEASE SAVEPOINT active_record_1
78033
+  (0.0ms) SAVEPOINT active_record_1
78034
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:45.418856"], ["updated_at", "2015-11-04 09:19:45.418856"]]
78035
+  (0.0ms) RELEASE SAVEPOINT active_record_1
78036
+ Rendered notifications_mailer/notify_new_message.html.erb (0.0ms)
78037
+ SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 8]]
78038
+
78039
+ NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms
78040
+
78041
+ Sent mail to user30@sleede.com (1.3ms)
78042
+ Date: Wed, 04 Nov 2015 10:19:45 +0100
78043
+ From: contact@sleede.com
78044
+ To: user30@sleede.com
78045
+ Message-ID: <5639cdb166f34_66e53fcc9d0601e0335dc@MBP-sleede-Nicolas.local.mail>
78046
+ Subject: notify_new_message
78047
+ Mime-Version: 1.0
78048
+ Content-Type: text/html;
78049
+ charset=UTF-8
78050
+ Content-Transfer-Encoding: 7bit
78051
+
78052
+
78053
+  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]]
78054
+  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"
78055
+ Wupee::NotificationTypeConfiguration Load (0.2ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1
78056
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)
78057
+  (0.0ms) SAVEPOINT active_record_1
78058
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:45.425476"], ["updated_at", "2015-11-04 09:19:45.425476"]]
78059
+  (0.0ms) RELEASE SAVEPOINT active_record_1
78060
+ Rendered notifications_mailer/notify_new_message.html.erb (0.0ms)
78061
+ SQL (0.1ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 9]]
78062
+
78063
+ NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms
78064
+
78065
+ Sent mail to user27@sleede.com (1.2ms)
78066
+ Date: Wed, 04 Nov 2015 10:19:45 +0100
78067
+ From: contact@sleede.com
78068
+ To: user27@sleede.com
78069
+ Message-ID: <5639cdb1689df_66e53fcc9d0601e0336f6@MBP-sleede-Nicolas.local.mail>
78070
+ Subject: notify_new_message
78071
+ Mime-Version: 1.0
78072
+ Content-Type: text/html;
78073
+ charset=UTF-8
78074
+ Content-Transfer-Encoding: 7bit
78075
+
78076
+
78077
+  (0.0ms) SAVEPOINT active_record_1
78078
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-04 09:19:45.429983"], ["updated_at", "2015-11-04 09:19:45.429983"]]
78079
+  (0.0ms) RELEASE SAVEPOINT active_record_1
78080
+  (0.0ms) SAVEPOINT active_record_1
78081
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-04 09:19:45.431431"], ["updated_at", "2015-11-04 09:19:45.431431"]]
78082
+  (0.0ms) RELEASE SAVEPOINT active_record_1
78083
+  (0.0ms) SAVEPOINT active_record_1
78084
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:45.433086"], ["updated_at", "2015-11-04 09:19:45.433086"]]
78085
+  (0.0ms) RELEASE SAVEPOINT active_record_1
78086
+ Rendered notifications_mailer/notify_new_message.html.erb (0.0ms)
78087
+ SQL (0.0ms) UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 12]]
78088
+
78089
+ NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms
78090
+
78091
+ Sent mail to user30@sleede.com (1.3ms)
78092
+ Date: Wed, 04 Nov 2015 10:19:45 +0100
78093
+ From: contact@sleede.com
78094
+ To: user30@sleede.com
78095
+ Message-ID: <5639cdb16a663_66e53fcc9d0601e033758@MBP-sleede-Nicolas.local.mail>
78096
+ Subject: notify_new_message
78097
+ Mime-Version: 1.0
78098
+ Content-Type: text/html;
78099
+ charset=UTF-8
78100
+ Content-Transfer-Encoding: 7bit
78101
+
78102
+
78103
+  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"
78104
+  (0.8ms) rollback transaction
78105
+  (0.1ms) begin transaction
78106
+  (0.0ms) rollback transaction
78107
+  (0.0ms) begin transaction
78108
+  (0.0ms) rollback transaction
78109
+  (0.0ms) begin transaction
78110
+  (0.0ms) rollback transaction
78111
+  (0.0ms) begin transaction
78112
+  (0.0ms) rollback transaction
78113
+  (0.0ms) begin transaction
78114
+  (0.0ms) rollback transaction
78115
+  (0.0ms) begin transaction
78116
+  (0.0ms) rollback transaction
78117
+  (0.0ms) begin transaction
78118
+  (0.0ms) rollback transaction
78119
+  (0.0ms) begin transaction
78120
+  (0.0ms) rollback transaction
78121
+  (0.0ms) begin transaction
78122
+  (0.0ms) SAVEPOINT active_record_1
78123
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-11-04 09:19:45.444759"], ["updated_at", "2015-11-04 09:19:45.444759"]]
78124
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
78125
+  (0.0ms) RELEASE SAVEPOINT active_record_1
78126
+  (0.1ms) SAVEPOINT active_record_1
78127
+ SQL (0.3ms) INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:45.447507"], ["updated_at", "2015-11-04 09:19:45.447507"]]
78128
+  (0.1ms) RELEASE SAVEPOINT active_record_1
78129
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]]
78130
+  (0.1ms) SAVEPOINT active_record_1
78131
+ Wupee::NotificationType Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
78132
+ SQL (0.1ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.450781"], ["updated_at", "2015-11-04 09:19:45.450781"]]
78133
+  (0.1ms) SELECT "users"."id" FROM "users"
78134
+ Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
78135
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
78136
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:19:45.456184"], ["updated_at", "2015-11-04 09:19:45.456184"]]
78137
+  (0.1ms) RELEASE SAVEPOINT active_record_1
78138
+  (0.0ms) SAVEPOINT active_record_1
78139
+ SQL (0.1ms) INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:45.458317"], ["updated_at", "2015-11-04 09:19:45.458317"]]
78140
+  (0.1ms) RELEASE SAVEPOINT active_record_1
78141
+  (0.1ms) SELECT COUNT(*) FROM "wupee_notifications"
78142
+  (0.0ms) SAVEPOINT active_record_1
78143
+ Wupee::Notification Load (0.1ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
78144
+ SQL (0.1ms) DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]]
78145
+ Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
78146
+ SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]]
78147
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
78148
+  (0.0ms) RELEASE SAVEPOINT active_record_1
78149
+  (0.0ms) SELECT COUNT(*) FROM "wupee_notifications"
78150
+  (0.8ms) rollback transaction
78151
+  (0.1ms) begin transaction
78152
+  (0.0ms) SAVEPOINT active_record_1
78153
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-11-04 09:19:45.466520"], ["updated_at", "2015-11-04 09:19:45.466520"]]
78154
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
78155
+  (0.0ms) RELEASE SAVEPOINT active_record_1
78156
+  (0.0ms) SAVEPOINT active_record_1
78157
+ Wupee::NotificationType Exists (0.3ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1
78158
+ SQL (0.3ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-04 09:19:45.471099"], ["updated_at", "2015-11-04 09:19:45.471099"]]
78159
+  (0.1ms) SELECT "users"."id" FROM "users"
78160
+ Wupee::NotificationTypeConfiguration Exists (0.2ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
78161
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
78162
+ SQL (0.2ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:19:45.476565"], ["updated_at", "2015-11-04 09:19:45.476565"]]
78163
+  (0.1ms) RELEASE SAVEPOINT active_record_1
78164
+  (0.1ms) SAVEPOINT active_record_1
78165
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
78166
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
78167
+  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"
78168
+  (0.0ms) SAVEPOINT active_record_1
78169
+ Wupee::Notification Load (0.0ms) SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
78170
+ Wupee::NotificationTypeConfiguration Load (0.0ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]]
78171
+ SQL (0.1ms) DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]]
78172
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
78173
+  (0.0ms) RELEASE SAVEPOINT active_record_1
78174
+  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"
78175
+  (0.8ms) rollback transaction
78176
+  (0.1ms) begin transaction
78177
+  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"
78178
+  (0.1ms) rollback transaction
78179
+  (0.3ms) begin transaction
78180
+  (0.4ms) SAVEPOINT active_record_1
78181
+ Wupee::NotificationType Exists (0.4ms) SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1
78182
+ SQL (0.9ms) INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.492903"], ["updated_at", "2015-11-04 09:19:45.492903"]]
78183
+  (0.2ms) SELECT "users"."id" FROM "users"
78184
+  (0.1ms) RELEASE SAVEPOINT active_record_1
78185
+  (0.1ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"
78186
+  (0.0ms) SAVEPOINT active_record_1
78187
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-11-04 09:19:45.498972"], ["updated_at", "2015-11-04 09:19:45.498972"]]
78188
+  (0.1ms) SELECT "wupee_notification_types"."id" FROM "wupee_notification_types"
78189
+ Wupee::NotificationType Load (0.0ms) SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]]
78190
+ Wupee::NotificationTypeConfiguration Exists (0.1ms) SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1
78191
+ SQL (0.1ms) INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-04 09:19:45.501667"], ["updated_at", "2015-11-04 09:19:45.501667"]]
78192
+  (0.1ms) RELEASE SAVEPOINT active_record_1
78193
+  (0.0ms) SELECT COUNT(*) FROM "wupee_notification_type_configurations"
78194
+ Wupee::NotificationTypeConfiguration Load (0.1ms) SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1
78195
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
78196
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
78197
+  (0.7ms) rollback transaction
78198
+  (0.1ms) begin transaction
78199
+  (0.0ms) rollback transaction
78200
+  (0.0ms) begin transaction
78201
+  (0.0ms) rollback transaction
78202
+  (0.1ms) begin transaction
78203
+  (0.0ms) rollback transaction