news_feed 0.0.5 → 0.0.6

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.
@@ -2422,3 +2422,996 @@ Connecting to database specified by database.yml
2422
2422
  SQL (0.1ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 06:32:22 UTC +00:00], ["event_object_id", 10], ["event_object_type", "User"], ["event_type", :Update], ["recipient_id", 10], ["recipient_type", "User"], ["sender_id", 10], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Fri, 10 Aug 2012 06:32:22 UTC +00:00]]
2423
2423
   (0.0ms) commit transaction
2424
2424
  NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 10 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2425
+ Connecting to database specified by database.yml
2426
+  (2.6ms) select sqlite_version(*)
2427
+  (0.7ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2428
+  (0.2ms) CREATE TABLE "news_feed" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "object_id" integer, "object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "timestamp" datetime) 
2429
+  (0.2ms) CREATE TABLE "news_feed_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "event_object_id" integer, "event_object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "sender_type" integer, "recipient_id" integer, "recipient_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2430
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2431
+  (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
2432
+  (0.1ms) PRAGMA index_list("schema_migrations")
2433
+  (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2434
+  (0.1ms) SELECT version FROM "schema_migrations"
2435
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
2436
+  (0.1ms) begin transaction
2437
+  (0.1ms) rollback transaction
2438
+  (0.1ms) begin transaction
2439
+ SQL (5.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00]]
2440
+  (0.1ms) commit transaction
2441
+  (0.1ms) begin transaction
2442
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00]]
2443
+  (0.1ms) commit transaction
2444
+  (0.1ms) begin transaction
2445
+ SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00]]
2446
+  (0.1ms) commit transaction
2447
+  (0.0ms) begin transaction
2448
+ SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00], ["event_object_id", 1], ["event_object_type", "Message"], ["event_type", :Create], ["recipient_id", 1], ["recipient_type", "User"], ["sender_id", 2], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00]]
2449
+  (0.0ms) commit transaction
2450
+ NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 1 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2451
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
2452
+  (0.0ms) begin transaction
2453
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00]]
2454
+  (0.0ms) commit transaction
2455
+  (0.0ms) begin transaction
2456
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00]]
2457
+  (0.0ms) commit transaction
2458
+  (0.0ms) begin transaction
2459
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00]]
2460
+  (0.0ms) commit transaction
2461
+  (0.0ms) begin transaction
2462
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00], ["event_object_id", 2], ["event_object_type", "Message"], ["event_type", :Delete], ["recipient_id", 3], ["recipient_type", "User"], ["sender_id", 4], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00]]
2463
+  (0.0ms) commit transaction
2464
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 3 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2465
+  (0.0ms) begin transaction
2466
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00]]
2467
+  (0.0ms) commit transaction
2468
+  (0.0ms) begin transaction
2469
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00]]
2470
+  (0.0ms) commit transaction
2471
+  (0.0ms) begin transaction
2472
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00]]
2473
+  (0.0ms) commit transaction
2474
+  (0.0ms) begin transaction
2475
+ SQL (0.1ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00], ["event_object_id", 3], ["event_object_type", "Message"], ["event_type", :Delete], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 6], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00]]
2476
+  (0.0ms) commit transaction
2477
+  (0.0ms) begin transaction
2478
+ SQL (0.1ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00], ["event_object_id", 3], ["event_object_type", "Message"], ["event_type", :Create], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 6], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00]]
2479
+  (0.0ms) commit transaction
2480
+  (0.1ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 5
2481
+  (0.0ms) begin transaction
2482
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00]]
2483
+  (0.0ms) commit transaction
2484
+  (0.0ms) begin transaction
2485
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00]]
2486
+  (0.0ms) commit transaction
2487
+  (0.0ms) begin transaction
2488
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00]]
2489
+  (0.0ms) commit transaction
2490
+  (0.0ms) begin transaction
2491
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00], ["event_object_id", 4], ["event_object_type", "Message"], ["event_type", :Custom], ["recipient_id", 7], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", 0], ["text", "This is my custom message!"], ["updated_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00]]
2492
+  (0.0ms) commit transaction
2493
+  (0.0ms) begin transaction
2494
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00], ["event_object_id", 4], ["event_object_type", "Message"], ["event_type", :Custom], ["recipient_id", 8], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", 0], ["text", "This is my custom message!"], ["updated_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00]]
2495
+  (0.0ms) commit transaction
2496
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 7 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2497
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 8 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2498
+  (0.0ms) begin transaction
2499
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00]]
2500
+  (0.0ms) commit transaction
2501
+  (0.0ms) begin transaction
2502
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00]]
2503
+  (0.0ms) commit transaction
2504
+  (0.0ms) begin transaction
2505
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00]]
2506
+  (0.0ms) commit transaction
2507
+  (0.0ms) begin transaction
2508
+ SQL (0.1ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00], ["event_object_id", 10], ["event_object_type", "User"], ["event_type", :Update], ["recipient_id", 10], ["recipient_type", "User"], ["sender_id", 10], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Fri, 10 Aug 2012 07:18:33 UTC +00:00]]
2509
+  (0.1ms) commit transaction
2510
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 10 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2511
+ Connecting to database specified by database.yml
2512
+  (1.7ms) select sqlite_version(*)
2513
+  (0.4ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2514
+  (0.2ms) CREATE TABLE "news_feed" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "object_id" integer, "object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "timestamp" datetime) 
2515
+  (0.2ms) CREATE TABLE "news_feed_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "event_object_id" integer, "event_object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "sender_type" integer, "recipient_id" integer, "recipient_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2516
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2517
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
2518
+  (0.0ms) PRAGMA index_list("schema_migrations")
2519
+  (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2520
+  (0.1ms) SELECT version FROM "schema_migrations"
2521
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
2522
+  (0.1ms) begin transaction
2523
+  (0.0ms) rollback transaction
2524
+  (0.1ms) begin transaction
2525
+ SQL (5.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00]]
2526
+  (0.1ms) commit transaction
2527
+  (0.1ms) begin transaction
2528
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00]]
2529
+  (0.1ms) commit transaction
2530
+  (0.1ms) begin transaction
2531
+ SQL (0.4ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00]]
2532
+  (0.1ms) commit transaction
2533
+  (0.1ms) begin transaction
2534
+ SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00], ["event_object_id", 1], ["event_object_type", "Message"], ["event_type", :Create], ["recipient_id", 1], ["recipient_type", "User"], ["sender_id", 2], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00]]
2535
+  (0.0ms) commit transaction
2536
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 1 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2537
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
2538
+  (0.0ms) begin transaction
2539
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00]]
2540
+  (0.0ms) commit transaction
2541
+  (0.0ms) begin transaction
2542
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00]]
2543
+  (0.0ms) commit transaction
2544
+  (0.0ms) begin transaction
2545
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00]]
2546
+  (0.0ms) commit transaction
2547
+  (0.0ms) begin transaction
2548
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00], ["event_object_id", 2], ["event_object_type", "Message"], ["event_type", :Delete], ["recipient_id", 3], ["recipient_type", "User"], ["sender_id", 4], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00]]
2549
+  (0.0ms) commit transaction
2550
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 3 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2551
+  (0.0ms) begin transaction
2552
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00]]
2553
+  (0.0ms) commit transaction
2554
+  (0.0ms) begin transaction
2555
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00]]
2556
+  (0.0ms) commit transaction
2557
+  (0.0ms) begin transaction
2558
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00]]
2559
+  (0.0ms) commit transaction
2560
+  (0.0ms) begin transaction
2561
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00], ["event_object_id", 3], ["event_object_type", "Message"], ["event_type", :Delete], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 6], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00]]
2562
+  (0.1ms) commit transaction
2563
+  (0.1ms) begin transaction
2564
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00], ["event_object_id", 3], ["event_object_type", "Message"], ["event_type", :Create], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 6], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00]]
2565
+  (0.0ms) commit transaction
2566
+  (0.1ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 5
2567
+  (0.0ms) begin transaction
2568
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00]]
2569
+  (0.0ms) commit transaction
2570
+  (0.0ms) begin transaction
2571
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00]]
2572
+  (0.1ms) commit transaction
2573
+  (0.0ms) begin transaction
2574
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00]]
2575
+  (0.0ms) commit transaction
2576
+  (0.0ms) begin transaction
2577
+ SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00], ["event_object_id", 4], ["event_object_type", "Message"], ["event_type", :Custom], ["recipient_id", 7], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", 0], ["text", "This is my custom message!"], ["updated_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00]]
2578
+  (0.0ms) commit transaction
2579
+  (0.0ms) begin transaction
2580
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00], ["event_object_id", 4], ["event_object_type", "Message"], ["event_type", :Custom], ["recipient_id", 8], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", 0], ["text", "This is my custom message!"], ["updated_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00]]
2581
+  (0.0ms) commit transaction
2582
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 7 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2583
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 8 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2584
+  (0.1ms) begin transaction
2585
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00]]
2586
+  (0.1ms) commit transaction
2587
+  (0.1ms) begin transaction
2588
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00]]
2589
+  (0.1ms) commit transaction
2590
+  (0.1ms) begin transaction
2591
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00]]
2592
+  (0.1ms) commit transaction
2593
+  (0.1ms) begin transaction
2594
+ SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00], ["event_object_id", 10], ["event_object_type", "User"], ["event_type", :Update], ["recipient_id", 10], ["recipient_type", "User"], ["sender_id", 10], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00]]
2595
+  (0.1ms) commit transaction
2596
+ NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 10 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2597
+  (0.1ms) begin transaction
2598
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00]]
2599
+  (0.1ms) commit transaction
2600
+  (0.1ms) begin transaction
2601
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00]]
2602
+  (0.1ms) commit transaction
2603
+  (0.1ms) begin transaction
2604
+ SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00]]
2605
+  (0.1ms) commit transaction
2606
+  (0.1ms) begin transaction
2607
+ SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00], ["event_object_id", 6], ["event_object_type", "Message"], ["event_type", :Create], ["recipient_id", 11], ["recipient_type", "User"], ["sender_id", 12], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:22:22 UTC +00:00]]
2608
+  (0.1ms) commit transaction
2609
+ Connecting to database specified by database.yml
2610
+  (2.1ms) select sqlite_version(*)
2611
+  (0.4ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2612
+  (0.2ms) CREATE TABLE "news_feed" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "object_id" integer, "object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "timestamp" datetime) 
2613
+  (0.2ms) CREATE TABLE "news_feed_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "event_object_id" integer, "event_object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "sender_type" integer, "recipient_id" integer, "recipient_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2614
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2615
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
2616
+  (0.0ms) PRAGMA index_list("schema_migrations")
2617
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2618
+  (0.1ms) SELECT version FROM "schema_migrations"
2619
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
2620
+ Connecting to database specified by database.yml
2621
+  (1.8ms) select sqlite_version(*)
2622
+  (0.6ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2623
+  (0.2ms) CREATE TABLE "news_feed" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "object_id" integer, "object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "timestamp" datetime) 
2624
+  (0.2ms) CREATE TABLE "news_feed_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "event_object_id" integer, "event_object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "sender_type" integer, "recipient_id" integer, "recipient_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2625
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2626
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
2627
+  (0.0ms) PRAGMA index_list("schema_migrations")
2628
+  (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2629
+  (0.1ms) SELECT version FROM "schema_migrations"
2630
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
2631
+  (0.1ms) begin transaction
2632
+  (0.0ms) rollback transaction
2633
+  (0.1ms) begin transaction
2634
+ SQL (4.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00]]
2635
+  (0.1ms) commit transaction
2636
+  (0.1ms) begin transaction
2637
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00]]
2638
+  (0.0ms) commit transaction
2639
+  (0.1ms) begin transaction
2640
+ SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00]]
2641
+  (0.1ms) commit transaction
2642
+  (0.0ms) begin transaction
2643
+ SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00], ["event_object_id", 1], ["event_object_type", "Message"], ["event_type", :Create], ["recipient_id", 1], ["recipient_type", "User"], ["sender_id", 2], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00]]
2644
+  (0.1ms) commit transaction
2645
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 1 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2646
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
2647
+  (0.0ms) begin transaction
2648
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00]]
2649
+  (0.0ms) commit transaction
2650
+  (0.0ms) begin transaction
2651
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00]]
2652
+  (0.0ms) commit transaction
2653
+  (0.0ms) begin transaction
2654
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00]]
2655
+  (0.0ms) commit transaction
2656
+  (0.0ms) begin transaction
2657
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00], ["event_object_id", 2], ["event_object_type", "Message"], ["event_type", :Delete], ["recipient_id", 3], ["recipient_type", "User"], ["sender_id", 4], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00]]
2658
+  (0.0ms) commit transaction
2659
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 3 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2660
+  (0.0ms) begin transaction
2661
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00]]
2662
+  (0.0ms) commit transaction
2663
+  (0.0ms) begin transaction
2664
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00]]
2665
+  (0.0ms) commit transaction
2666
+  (0.0ms) begin transaction
2667
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00]]
2668
+  (0.0ms) commit transaction
2669
+  (0.0ms) begin transaction
2670
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00], ["event_object_id", 5], ["event_object_type", "User"], ["event_type", :Create], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 5], ["sender_type", 0], ["text", "You have created a User: Bob Smith"], ["updated_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00]]
2671
+  (0.0ms) commit transaction
2672
+  (0.0ms) begin transaction
2673
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00]]
2674
+  (0.0ms) commit transaction
2675
+  (0.0ms) begin transaction
2676
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00]]
2677
+  (0.0ms) commit transaction
2678
+  (0.0ms) begin transaction
2679
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00]]
2680
+  (0.0ms) commit transaction
2681
+  (0.0ms) begin transaction
2682
+ SQL (0.1ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00], ["event_object_id", 4], ["event_object_type", "Message"], ["event_type", :Delete], ["recipient_id", 7], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00]]
2683
+  (0.0ms) commit transaction
2684
+  (0.0ms) begin transaction
2685
+ SQL (0.1ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00], ["event_object_id", 4], ["event_object_type", "Message"], ["event_type", :Create], ["recipient_id", 7], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00]]
2686
+  (0.0ms) commit transaction
2687
+  (0.1ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 7
2688
+  (0.0ms) begin transaction
2689
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00]]
2690
+  (0.0ms) commit transaction
2691
+  (0.0ms) begin transaction
2692
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00]]
2693
+  (0.0ms) commit transaction
2694
+  (0.0ms) begin transaction
2695
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00]]
2696
+  (0.0ms) commit transaction
2697
+  (0.0ms) begin transaction
2698
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00], ["event_object_id", 5], ["event_object_type", "Message"], ["event_type", :Custom], ["recipient_id", 9], ["recipient_type", "User"], ["sender_id", 10], ["sender_type", 0], ["text", "This is my custom message!"], ["updated_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00]]
2699
+  (0.0ms) commit transaction
2700
+  (0.0ms) begin transaction
2701
+ SQL (0.1ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00], ["event_object_id", 5], ["event_object_type", "Message"], ["event_type", :Custom], ["recipient_id", 10], ["recipient_type", "User"], ["sender_id", 10], ["sender_type", 0], ["text", "This is my custom message!"], ["updated_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00]]
2702
+  (0.0ms) commit transaction
2703
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 9 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2704
+  (0.0ms) begin transaction
2705
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00]]
2706
+  (0.1ms) commit transaction
2707
+  (0.1ms) begin transaction
2708
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00]]
2709
+  (0.0ms) commit transaction
2710
+  (0.0ms) begin transaction
2711
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00]]
2712
+  (0.0ms) commit transaction
2713
+  (0.0ms) begin transaction
2714
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00], ["event_object_id", 12], ["event_object_type", "User"], ["event_type", :Update], ["recipient_id", 12], ["recipient_type", "User"], ["sender_id", 12], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00]]
2715
+  (0.0ms) commit transaction
2716
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 12 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2717
+  (0.0ms) begin transaction
2718
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00]]
2719
+  (0.0ms) commit transaction
2720
+  (0.0ms) begin transaction
2721
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00]]
2722
+  (0.0ms) commit transaction
2723
+  (0.0ms) begin transaction
2724
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00]]
2725
+  (0.1ms) commit transaction
2726
+  (0.0ms) begin transaction
2727
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00], ["event_object_id", 7], ["event_object_type", "Message"], ["event_type", :Create], ["recipient_id", 13], ["recipient_type", "User"], ["sender_id", 14], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:35:38 UTC +00:00]]
2728
+  (0.1ms) commit transaction
2729
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 13 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2730
+ Connecting to database specified by database.yml
2731
+  (1.4ms) select sqlite_version(*)
2732
+  (0.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2733
+  (0.2ms) CREATE TABLE "news_feed" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "object_id" integer, "object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "timestamp" datetime) 
2734
+  (0.2ms) CREATE TABLE "news_feed_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "event_object_id" integer, "event_object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "sender_type" integer, "recipient_id" integer, "recipient_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2735
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2736
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
2737
+  (0.0ms) PRAGMA index_list("schema_migrations")
2738
+  (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2739
+  (0.1ms) SELECT version FROM "schema_migrations"
2740
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
2741
+  (0.1ms) begin transaction
2742
+  (0.1ms) rollback transaction
2743
+  (0.1ms) begin transaction
2744
+ SQL (3.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00]]
2745
+  (0.0ms) commit transaction
2746
+  (0.1ms) begin transaction
2747
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00]]
2748
+  (0.0ms) commit transaction
2749
+  (0.0ms) begin transaction
2750
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00]]
2751
+  (0.0ms) commit transaction
2752
+  (0.1ms) begin transaction
2753
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00]]
2754
+  (0.0ms) commit transaction
2755
+  (0.0ms) begin transaction
2756
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00]]
2757
+  (0.0ms) commit transaction
2758
+  (0.0ms) begin transaction
2759
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00]]
2760
+  (0.0ms) commit transaction
2761
+  (0.0ms) begin transaction
2762
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00]]
2763
+  (0.0ms) commit transaction
2764
+  (0.0ms) begin transaction
2765
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00]]
2766
+  (0.0ms) commit transaction
2767
+  (0.0ms) begin transaction
2768
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00]]
2769
+  (0.0ms) commit transaction
2770
+  (0.0ms) begin transaction
2771
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00]]
2772
+  (0.0ms) commit transaction
2773
+  (0.0ms) begin transaction
2774
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00]]
2775
+  (0.0ms) commit transaction
2776
+  (0.0ms) begin transaction
2777
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00]]
2778
+  (0.0ms) commit transaction
2779
+  (0.0ms) begin transaction
2780
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00]]
2781
+  (0.0ms) commit transaction
2782
+  (0.1ms) begin transaction
2783
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00]]
2784
+  (0.0ms) commit transaction
2785
+  (0.1ms) begin transaction
2786
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00]]
2787
+  (0.0ms) commit transaction
2788
+  (0.0ms) begin transaction
2789
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00]]
2790
+  (0.0ms) commit transaction
2791
+  (0.0ms) begin transaction
2792
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00]]
2793
+  (0.0ms) commit transaction
2794
+  (0.0ms) begin transaction
2795
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00]]
2796
+  (0.0ms) commit transaction
2797
+  (0.1ms) begin transaction
2798
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00]]
2799
+  (0.0ms) commit transaction
2800
+  (0.0ms) begin transaction
2801
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00]]
2802
+  (0.0ms) commit transaction
2803
+  (0.0ms) begin transaction
2804
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:36:30 UTC +00:00]]
2805
+  (0.0ms) commit transaction
2806
+ Connecting to database specified by database.yml
2807
+  (1.4ms) select sqlite_version(*)
2808
+  (0.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2809
+  (0.2ms) CREATE TABLE "news_feed" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "object_id" integer, "object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "timestamp" datetime) 
2810
+  (0.2ms) CREATE TABLE "news_feed_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "event_object_id" integer, "event_object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "sender_type" integer, "recipient_id" integer, "recipient_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2811
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2812
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
2813
+  (0.0ms) PRAGMA index_list("schema_migrations")
2814
+  (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2815
+  (0.1ms) SELECT version FROM "schema_migrations"
2816
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
2817
+  (0.1ms) begin transaction
2818
+  (0.0ms) rollback transaction
2819
+  (0.1ms) begin transaction
2820
+ SQL (5.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00]]
2821
+  (0.1ms) commit transaction
2822
+  (0.1ms) begin transaction
2823
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00]]
2824
+  (0.1ms) commit transaction
2825
+  (0.1ms) begin transaction
2826
+ SQL (0.4ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00]]
2827
+  (0.1ms) commit transaction
2828
+  (0.1ms) begin transaction
2829
+ SQL (0.5ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00], ["event_object_id", 1], ["event_object_type", "Message"], ["event_type", :Create], ["recipient_id", 1], ["recipient_type", "User"], ["sender_id", 2], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00]]
2830
+  (0.1ms) commit transaction
2831
+ NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 1 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2832
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
2833
+  (0.1ms) begin transaction
2834
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00]]
2835
+  (0.1ms) commit transaction
2836
+  (0.1ms) begin transaction
2837
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00]]
2838
+  (0.1ms) commit transaction
2839
+  (0.1ms) begin transaction
2840
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00]]
2841
+  (0.0ms) commit transaction
2842
+  (0.0ms) begin transaction
2843
+ SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00], ["event_object_id", 2], ["event_object_type", "Message"], ["event_type", :Delete], ["recipient_id", 3], ["recipient_type", "User"], ["sender_id", 4], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00]]
2844
+  (0.0ms) commit transaction
2845
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 3 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2846
+  (0.0ms) begin transaction
2847
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00]]
2848
+  (0.1ms) commit transaction
2849
+  (0.0ms) begin transaction
2850
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00]]
2851
+  (0.0ms) commit transaction
2852
+  (0.0ms) begin transaction
2853
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00]]
2854
+  (0.0ms) commit transaction
2855
+  (0.1ms) begin transaction
2856
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00], ["event_object_id", 5], ["event_object_type", "User"], ["event_type", :Create], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 5], ["sender_type", 0], ["text", "You have created a User: Bob Smith"], ["updated_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00]]
2857
+  (0.0ms) commit transaction
2858
+  (0.1ms) begin transaction
2859
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00]]
2860
+  (0.0ms) commit transaction
2861
+  (0.0ms) begin transaction
2862
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00]]
2863
+  (0.0ms) commit transaction
2864
+  (0.0ms) begin transaction
2865
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00]]
2866
+  (0.0ms) commit transaction
2867
+  (0.0ms) begin transaction
2868
+ SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00], ["event_object_id", 4], ["event_object_type", "Message"], ["event_type", :Delete], ["recipient_id", 7], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00]]
2869
+  (0.1ms) commit transaction
2870
+  (0.1ms) begin transaction
2871
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00], ["event_object_id", 4], ["event_object_type", "Message"], ["event_type", :Create], ["recipient_id", 7], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00]]
2872
+  (0.1ms) commit transaction
2873
+  (0.2ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 7
2874
+  (0.1ms) begin transaction
2875
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00]]
2876
+  (0.1ms) commit transaction
2877
+  (0.0ms) begin transaction
2878
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00]]
2879
+  (0.1ms) commit transaction
2880
+  (0.1ms) begin transaction
2881
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00]]
2882
+  (0.1ms) commit transaction
2883
+  (0.1ms) begin transaction
2884
+ SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00], ["event_object_id", 5], ["event_object_type", "Message"], ["event_type", :Custom], ["recipient_id", 9], ["recipient_type", "User"], ["sender_id", 10], ["sender_type", 0], ["text", "This is my custom message!"], ["updated_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00]]
2885
+  (0.1ms) commit transaction
2886
+  (0.1ms) begin transaction
2887
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00], ["event_object_id", 5], ["event_object_type", "Message"], ["event_type", :Custom], ["recipient_id", 10], ["recipient_type", "User"], ["sender_id", 10], ["sender_type", 0], ["text", "This is my custom message!"], ["updated_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00]]
2888
+  (0.1ms) commit transaction
2889
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 9 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2890
+  (0.1ms) begin transaction
2891
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00]]
2892
+  (0.1ms) commit transaction
2893
+  (0.0ms) begin transaction
2894
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00]]
2895
+  (0.1ms) commit transaction
2896
+  (0.0ms) begin transaction
2897
+ SQL (0.4ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00]]
2898
+  (0.1ms) commit transaction
2899
+  (0.1ms) begin transaction
2900
+ SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00], ["event_object_id", 12], ["event_object_type", "User"], ["event_type", :Update], ["recipient_id", 12], ["recipient_type", "User"], ["sender_id", 12], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00]]
2901
+  (0.1ms) commit transaction
2902
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 12 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2903
+  (0.1ms) begin transaction
2904
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00]]
2905
+  (0.1ms) commit transaction
2906
+  (0.0ms) begin transaction
2907
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00]]
2908
+  (0.1ms) commit transaction
2909
+  (0.1ms) begin transaction
2910
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00]]
2911
+  (0.1ms) commit transaction
2912
+  (0.1ms) begin transaction
2913
+ SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00], ["event_object_id", 7], ["event_object_type", "Message"], ["event_type", :Create], ["recipient_id", 13], ["recipient_type", "User"], ["sender_id", 14], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:37:33 UTC +00:00]]
2914
+  (0.1ms) commit transaction
2915
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 13 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2916
+ Connecting to database specified by database.yml
2917
+  (1.5ms) select sqlite_version(*)
2918
+  (0.4ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2919
+  (0.1ms) CREATE TABLE "news_feed" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "object_id" integer, "object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "timestamp" datetime) 
2920
+  (0.2ms) CREATE TABLE "news_feed_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "event_object_id" integer, "event_object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "sender_type" varchar(255), "recipient_id" integer, "recipient_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2921
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2922
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
2923
+  (0.0ms) PRAGMA index_list("schema_migrations")
2924
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2925
+  (0.1ms) SELECT version FROM "schema_migrations"
2926
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
2927
+  (0.1ms) begin transaction
2928
+  (0.0ms) rollback transaction
2929
+  (0.1ms) begin transaction
2930
+ SQL (3.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00]]
2931
+  (0.0ms) commit transaction
2932
+  (0.0ms) begin transaction
2933
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00]]
2934
+  (0.0ms) commit transaction
2935
+  (0.1ms) begin transaction
2936
+ SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00]]
2937
+  (0.1ms) commit transaction
2938
+  (0.1ms) begin transaction
2939
+ SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00], ["event_object_id", 1], ["event_object_type", "Message"], ["event_type", :Create], ["recipient_id", 1], ["recipient_type", "User"], ["sender_id", 2], ["sender_type", "User"], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00]]
2940
+  (0.1ms) commit transaction
2941
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 1 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2942
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
2943
+  (0.1ms) begin transaction
2944
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00]]
2945
+  (0.0ms) commit transaction
2946
+  (0.0ms) begin transaction
2947
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00]]
2948
+  (0.0ms) commit transaction
2949
+  (0.0ms) begin transaction
2950
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00]]
2951
+  (0.0ms) commit transaction
2952
+  (0.0ms) begin transaction
2953
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00], ["event_object_id", 2], ["event_object_type", "Message"], ["event_type", :Delete], ["recipient_id", 3], ["recipient_type", "User"], ["sender_id", 4], ["sender_type", "User"], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00]]
2954
+  (0.0ms) commit transaction
2955
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 3 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2956
+  (0.0ms) begin transaction
2957
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00]]
2958
+  (0.0ms) commit transaction
2959
+  (0.0ms) begin transaction
2960
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00]]
2961
+  (0.0ms) commit transaction
2962
+  (0.0ms) begin transaction
2963
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00]]
2964
+  (0.0ms) commit transaction
2965
+  (0.0ms) begin transaction
2966
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00], ["event_object_id", 5], ["event_object_type", "User"], ["event_type", :Create], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 5], ["sender_type", "User"], ["text", "You have created a User: Bob Smith"], ["updated_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00]]
2967
+  (0.0ms) commit transaction
2968
+  (0.0ms) begin transaction
2969
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00]]
2970
+  (0.0ms) commit transaction
2971
+  (0.0ms) begin transaction
2972
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00]]
2973
+  (0.0ms) commit transaction
2974
+  (0.0ms) begin transaction
2975
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00]]
2976
+  (0.0ms) commit transaction
2977
+  (0.0ms) begin transaction
2978
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00], ["event_object_id", 4], ["event_object_type", "Message"], ["event_type", :Delete], ["recipient_id", 7], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", "User"], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00]]
2979
+  (0.0ms) commit transaction
2980
+  (0.0ms) begin transaction
2981
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00], ["event_object_id", 4], ["event_object_type", "Message"], ["event_type", :Create], ["recipient_id", 7], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", "User"], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00]]
2982
+  (0.0ms) commit transaction
2983
+  (0.1ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 7
2984
+  (0.1ms) begin transaction
2985
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00]]
2986
+  (0.0ms) commit transaction
2987
+  (0.0ms) begin transaction
2988
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00]]
2989
+  (0.0ms) commit transaction
2990
+  (0.0ms) begin transaction
2991
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00]]
2992
+  (0.0ms) commit transaction
2993
+  (0.0ms) begin transaction
2994
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00], ["event_object_id", 5], ["event_object_type", "Message"], ["event_type", :Custom], ["recipient_id", 9], ["recipient_type", "User"], ["sender_id", 10], ["sender_type", "User"], ["text", "This is my custom message!"], ["updated_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00]]
2995
+  (0.0ms) commit transaction
2996
+  (0.0ms) begin transaction
2997
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00], ["event_object_id", 5], ["event_object_type", "Message"], ["event_type", :Custom], ["recipient_id", 10], ["recipient_type", "User"], ["sender_id", 10], ["sender_type", "User"], ["text", "This is my custom message!"], ["updated_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00]]
2998
+  (0.0ms) commit transaction
2999
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 9 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3000
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 10 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3001
+  (0.0ms) begin transaction
3002
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00]]
3003
+  (0.0ms) commit transaction
3004
+  (0.0ms) begin transaction
3005
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00]]
3006
+  (0.0ms) commit transaction
3007
+  (0.0ms) begin transaction
3008
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00]]
3009
+  (0.0ms) commit transaction
3010
+  (0.0ms) begin transaction
3011
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00], ["event_object_id", 12], ["event_object_type", "User"], ["event_type", :Update], ["recipient_id", 12], ["recipient_type", "User"], ["sender_id", 12], ["sender_type", "User"], ["text", "You have updated a User: Bob Smith"], ["updated_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00]]
3012
+  (0.0ms) commit transaction
3013
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 12 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3014
+  (0.0ms) begin transaction
3015
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00]]
3016
+  (0.0ms) commit transaction
3017
+  (0.0ms) begin transaction
3018
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00]]
3019
+  (0.0ms) commit transaction
3020
+  (0.0ms) begin transaction
3021
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00]]
3022
+  (0.1ms) commit transaction
3023
+  (0.0ms) begin transaction
3024
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00], ["event_object_id", 7], ["event_object_type", "Message"], ["event_type", :Create], ["recipient_id", 13], ["recipient_type", "User"], ["sender_id", 14], ["sender_type", "User"], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:39:58 UTC +00:00]]
3025
+  (0.0ms) commit transaction
3026
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 13 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3027
+ Connecting to database specified by database.yml
3028
+  (2.0ms) select sqlite_version(*)
3029
+  (0.5ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3030
+  (0.1ms) CREATE TABLE "news_feed" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "object_id" integer, "object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "timestamp" datetime) 
3031
+  (0.3ms) CREATE TABLE "news_feed_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "event_object_id" integer, "event_object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "sender_type" varchar(255), "recipient_id" integer, "recipient_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3032
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
3033
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3034
+  (0.0ms) PRAGMA index_list("schema_migrations")
3035
+  (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3036
+  (0.1ms) SELECT version FROM "schema_migrations"
3037
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
3038
+  (0.1ms) begin transaction
3039
+  (0.1ms) rollback transaction
3040
+  (0.0ms) begin transaction
3041
+ SQL (3.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:40:36 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:40:36 UTC +00:00]]
3042
+  (0.0ms) commit transaction
3043
+  (0.0ms) begin transaction
3044
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:40:36 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:40:36 UTC +00:00]]
3045
+  (0.0ms) commit transaction
3046
+  (0.0ms) begin transaction
3047
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:40:36 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:40:36 UTC +00:00]]
3048
+  (0.1ms) commit transaction
3049
+  (0.0ms) begin transaction
3050
+ SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:40:36 UTC +00:00], ["event_object_id", 1], ["event_object_type", "Message"], ["event_type", :Create], ["recipient_id", 1], ["recipient_type", "User"], ["sender_id", 2], ["sender_type", "User"], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:40:36 UTC +00:00]]
3051
+  (0.1ms) commit transaction
3052
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 1 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3053
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
3054
+  (0.1ms) begin transaction
3055
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00]]
3056
+  (0.0ms) commit transaction
3057
+  (0.0ms) begin transaction
3058
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00]]
3059
+  (0.0ms) commit transaction
3060
+  (0.0ms) begin transaction
3061
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00]]
3062
+  (0.0ms) commit transaction
3063
+  (0.0ms) begin transaction
3064
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00], ["event_object_id", 2], ["event_object_type", "Message"], ["event_type", :Delete], ["recipient_id", 3], ["recipient_type", "User"], ["sender_id", 4], ["sender_type", "User"], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00]]
3065
+  (0.0ms) commit transaction
3066
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 3 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3067
+  (0.0ms) begin transaction
3068
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00]]
3069
+  (0.0ms) commit transaction
3070
+  (0.0ms) begin transaction
3071
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00]]
3072
+  (0.0ms) commit transaction
3073
+  (0.1ms) begin transaction
3074
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00]]
3075
+  (0.0ms) commit transaction
3076
+  (0.0ms) begin transaction
3077
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00], ["event_object_id", 5], ["event_object_type", "User"], ["event_type", :Create], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 5], ["sender_type", "User"], ["text", "You have created a User: Bob Smith"], ["updated_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00]]
3078
+  (0.0ms) commit transaction
3079
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 5 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3080
+  (0.0ms) begin transaction
3081
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00]]
3082
+  (0.1ms) commit transaction
3083
+  (0.0ms) begin transaction
3084
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00]]
3085
+  (0.0ms) commit transaction
3086
+  (0.0ms) begin transaction
3087
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00]]
3088
+  (0.0ms) commit transaction
3089
+  (0.0ms) begin transaction
3090
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00], ["event_object_id", 4], ["event_object_type", "Message"], ["event_type", :Delete], ["recipient_id", 7], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", "User"], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00]]
3091
+  (0.0ms) commit transaction
3092
+  (0.0ms) begin transaction
3093
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00], ["event_object_id", 4], ["event_object_type", "Message"], ["event_type", :Create], ["recipient_id", 7], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", "User"], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00]]
3094
+  (0.0ms) commit transaction
3095
+  (0.1ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 7
3096
+  (0.0ms) begin transaction
3097
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00]]
3098
+  (0.0ms) commit transaction
3099
+  (0.0ms) begin transaction
3100
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00]]
3101
+  (0.1ms) commit transaction
3102
+  (0.0ms) begin transaction
3103
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00]]
3104
+  (0.0ms) commit transaction
3105
+  (0.1ms) begin transaction
3106
+ SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00], ["event_object_id", 5], ["event_object_type", "Message"], ["event_type", :Custom], ["recipient_id", 9], ["recipient_type", "User"], ["sender_id", 10], ["sender_type", "User"], ["text", "This is my custom message!"], ["updated_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00]]
3107
+  (0.1ms) commit transaction
3108
+  (0.0ms) begin transaction
3109
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00], ["event_object_id", 5], ["event_object_type", "Message"], ["event_type", :Custom], ["recipient_id", 10], ["recipient_type", "User"], ["sender_id", 10], ["sender_type", "User"], ["text", "This is my custom message!"], ["updated_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00]]
3110
+  (0.0ms) commit transaction
3111
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 9 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3112
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 10 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3113
+  (0.1ms) begin transaction
3114
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00]]
3115
+  (0.1ms) commit transaction
3116
+  (0.0ms) begin transaction
3117
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00]]
3118
+  (0.0ms) commit transaction
3119
+  (0.0ms) begin transaction
3120
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00]]
3121
+  (0.0ms) commit transaction
3122
+  (0.0ms) begin transaction
3123
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00], ["event_object_id", 12], ["event_object_type", "User"], ["event_type", :Update], ["recipient_id", 12], ["recipient_type", "User"], ["sender_id", 12], ["sender_type", "User"], ["text", "You have updated a User: Bob Smith"], ["updated_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00]]
3124
+  (0.0ms) commit transaction
3125
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 12 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3126
+  (0.1ms) begin transaction
3127
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00]]
3128
+  (0.1ms) commit transaction
3129
+  (0.0ms) begin transaction
3130
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00]]
3131
+  (0.1ms) commit transaction
3132
+  (0.0ms) begin transaction
3133
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00]]
3134
+  (0.1ms) commit transaction
3135
+  (0.1ms) begin transaction
3136
+ SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00], ["event_object_id", 7], ["event_object_type", "Message"], ["event_type", :Create], ["recipient_id", 13], ["recipient_type", "User"], ["sender_id", 14], ["sender_type", "User"], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00]]
3137
+  (0.1ms) commit transaction
3138
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 13 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3139
+  (0.0ms) begin transaction
3140
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00], ["event_object_id", 7], ["event_object_type", "Message"], ["event_type", :Delete], ["recipient_id", 14], ["recipient_type", "User"], ["sender_id", 14], ["sender_type", "User"], ["text", "You have deleted a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00]]
3141
+  (0.0ms) commit transaction
3142
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 14 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3143
+  (0.0ms) begin transaction
3144
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00], ["event_object_id", 14], ["event_object_type", "User"], ["event_type", :Update], ["recipient_id", 14], ["recipient_type", "User"], ["sender_id", 14], ["sender_type", "User"], ["text", "You have updated a User: Bob Smith"], ["updated_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00]]
3145
+  (0.0ms) commit transaction
3146
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 14 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3147
+  (0.0ms) begin transaction
3148
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00], ["event_object_id", 7], ["event_object_type", "Message"], ["event_type", :Send], ["recipient_id", 13], ["recipient_type", "User"], ["sender_id", 14], ["sender_type", "User"], ["text", "Bob Smith has sent you a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00]]
3149
+  (0.1ms) commit transaction
3150
+  (0.1ms) begin transaction
3151
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00], ["event_object_id", 7], ["event_object_type", "Message"], ["event_type", :Send], ["recipient_id", 14], ["recipient_type", "User"], ["sender_id", 14], ["sender_type", "User"], ["text", "You have sent yourself a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:40:37 UTC +00:00]]
3152
+  (0.1ms) commit transaction
3153
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 13 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3154
+ Connecting to database specified by database.yml
3155
+  (2.2ms) select sqlite_version(*)
3156
+  (0.6ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3157
+  (0.3ms) CREATE TABLE "news_feed" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "object_id" integer, "object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "timestamp" datetime) 
3158
+  (0.3ms) CREATE TABLE "news_feed_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "event_object_id" integer, "event_object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "sender_type" varchar(255), "recipient_id" integer, "recipient_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3159
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
3160
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3161
+  (0.0ms) PRAGMA index_list("schema_migrations")
3162
+  (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3163
+  (0.1ms) SELECT version FROM "schema_migrations"
3164
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
3165
+  (0.1ms) begin transaction
3166
+  (0.0ms) rollback transaction
3167
+  (0.1ms) begin transaction
3168
+ SQL (4.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00]]
3169
+  (0.1ms) commit transaction
3170
+  (0.0ms) begin transaction
3171
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00]]
3172
+  (0.0ms) commit transaction
3173
+  (0.1ms) begin transaction
3174
+ SQL (0.4ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00]]
3175
+  (0.1ms) commit transaction
3176
+  (0.1ms) begin transaction
3177
+ SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00], ["event_object_id", 1], ["event_object_type", "Message"], ["event_type", :Create], ["recipient_id", 1], ["recipient_type", "User"], ["sender_id", 2], ["sender_type", "User"], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00]]
3178
+  (0.1ms) commit transaction
3179
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 1 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3180
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
3181
+  (0.0ms) begin transaction
3182
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00]]
3183
+  (0.0ms) commit transaction
3184
+  (0.0ms) begin transaction
3185
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00]]
3186
+  (0.0ms) commit transaction
3187
+  (0.0ms) begin transaction
3188
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00]]
3189
+  (0.0ms) commit transaction
3190
+  (0.0ms) begin transaction
3191
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00], ["event_object_id", 2], ["event_object_type", "Message"], ["event_type", :Delete], ["recipient_id", 3], ["recipient_type", "User"], ["sender_id", 4], ["sender_type", "User"], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00]]
3192
+  (0.0ms) commit transaction
3193
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 3 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3194
+  (0.0ms) begin transaction
3195
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00]]
3196
+  (0.0ms) commit transaction
3197
+  (0.0ms) begin transaction
3198
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00]]
3199
+  (0.0ms) commit transaction
3200
+  (0.0ms) begin transaction
3201
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00]]
3202
+  (0.0ms) commit transaction
3203
+  (0.0ms) begin transaction
3204
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00], ["event_object_id", 5], ["event_object_type", "User"], ["event_type", :Create], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 5], ["sender_type", "User"], ["text", "You have created a User: Bob Smith"], ["updated_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00]]
3205
+  (0.0ms) commit transaction
3206
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 5 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3207
+  (0.0ms) begin transaction
3208
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00]]
3209
+  (0.0ms) commit transaction
3210
+  (0.0ms) begin transaction
3211
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00]]
3212
+  (0.0ms) commit transaction
3213
+  (0.0ms) begin transaction
3214
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00]]
3215
+  (0.0ms) commit transaction
3216
+  (0.0ms) begin transaction
3217
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00], ["event_object_id", 4], ["event_object_type", "Message"], ["event_type", :Delete], ["recipient_id", 7], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", "User"], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00]]
3218
+  (0.0ms) commit transaction
3219
+  (0.0ms) begin transaction
3220
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00], ["event_object_id", 4], ["event_object_type", "Message"], ["event_type", :Create], ["recipient_id", 7], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", "User"], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00]]
3221
+  (0.0ms) commit transaction
3222
+  (0.1ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 7
3223
+  (0.0ms) begin transaction
3224
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00]]
3225
+  (0.0ms) commit transaction
3226
+  (0.0ms) begin transaction
3227
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00]]
3228
+  (0.0ms) commit transaction
3229
+  (0.0ms) begin transaction
3230
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00]]
3231
+  (0.0ms) commit transaction
3232
+  (0.0ms) begin transaction
3233
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00], ["event_object_id", 5], ["event_object_type", "Message"], ["event_type", :Custom], ["recipient_id", 9], ["recipient_type", "User"], ["sender_id", 10], ["sender_type", "User"], ["text", "This is my custom message!"], ["updated_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00]]
3234
+  (0.0ms) commit transaction
3235
+  (0.0ms) begin transaction
3236
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00], ["event_object_id", 5], ["event_object_type", "Message"], ["event_type", :Custom], ["recipient_id", 10], ["recipient_type", "User"], ["sender_id", 10], ["sender_type", "User"], ["text", "This is my custom message!"], ["updated_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00]]
3237
+  (0.0ms) commit transaction
3238
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 9 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3239
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 10 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3240
+  (0.0ms) begin transaction
3241
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00]]
3242
+  (0.0ms) commit transaction
3243
+  (0.0ms) begin transaction
3244
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00]]
3245
+  (0.0ms) commit transaction
3246
+  (0.0ms) begin transaction
3247
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00]]
3248
+  (0.0ms) commit transaction
3249
+  (0.0ms) begin transaction
3250
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00], ["event_object_id", 12], ["event_object_type", "User"], ["event_type", :Update], ["recipient_id", 12], ["recipient_type", "User"], ["sender_id", 12], ["sender_type", "User"], ["text", "You have updated a User: Bob Smith"], ["updated_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00]]
3251
+  (0.0ms) commit transaction
3252
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 12 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3253
+  (0.1ms) begin transaction
3254
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00]]
3255
+  (0.0ms) commit transaction
3256
+  (0.0ms) begin transaction
3257
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00]]
3258
+  (0.0ms) commit transaction
3259
+  (0.0ms) begin transaction
3260
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00]]
3261
+  (0.0ms) commit transaction
3262
+  (0.1ms) begin transaction
3263
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00], ["event_object_id", 7], ["event_object_type", "Message"], ["event_type", :Create], ["recipient_id", 13], ["recipient_type", "User"], ["sender_id", 14], ["sender_type", "User"], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00]]
3264
+  (0.0ms) commit transaction
3265
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 13 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3266
+  (0.0ms) begin transaction
3267
+ SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00], ["event_object_id", 7], ["event_object_type", "Message"], ["event_type", :Delete], ["recipient_id", 14], ["recipient_type", "User"], ["sender_id", 14], ["sender_type", "User"], ["text", "You have deleted a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00]]
3268
+  (0.1ms) commit transaction
3269
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 14 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3270
+  (0.1ms) begin transaction
3271
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00], ["event_object_id", 14], ["event_object_type", "User"], ["event_type", :Update], ["recipient_id", 14], ["recipient_type", "User"], ["sender_id", 14], ["sender_type", "User"], ["text", "You have updated a User: Bob Smith"], ["updated_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00]]
3272
+  (0.1ms) commit transaction
3273
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 14 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3274
+  (0.1ms) begin transaction
3275
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00], ["event_object_id", 7], ["event_object_type", "Message"], ["event_type", :Send], ["recipient_id", 13], ["recipient_type", "User"], ["sender_id", 14], ["sender_type", "User"], ["text", "Bob Smith has sent you a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00]]
3276
+  (0.0ms) commit transaction
3277
+  (0.1ms) begin transaction
3278
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00], ["event_object_id", 7], ["event_object_type", "Message"], ["event_type", :Send], ["recipient_id", 14], ["recipient_type", "User"], ["sender_id", 14], ["sender_type", "User"], ["text", "You have sent yourself a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00]]
3279
+  (0.1ms) commit transaction
3280
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 13 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3281
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 14 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3282
+  (0.1ms) begin transaction
3283
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00], ["event_object_id", 7], ["event_object_type", "Message"], ["event_type", :Custom], ["recipient_id", 13], ["recipient_type", "User"], ["sender_id", 14], ["sender_type", "User"], ["text", "This is my custom message"], ["updated_at", Fri, 10 Aug 2012 07:41:20 UTC +00:00]]
3284
+  (0.1ms) commit transaction
3285
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 13 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3286
+ Connecting to database specified by database.yml
3287
+  (1.4ms) select sqlite_version(*)
3288
+  (0.4ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3289
+  (0.1ms) CREATE TABLE "news_feed" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "object_id" integer, "object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "timestamp" datetime) 
3290
+  (0.2ms) CREATE TABLE "news_feed_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "event_object_id" integer, "event_object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "sender_type" varchar(255), "recipient_id" integer, "recipient_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3291
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
3292
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3293
+  (0.0ms) PRAGMA index_list("schema_migrations")
3294
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3295
+  (0.1ms) SELECT version FROM "schema_migrations"
3296
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
3297
+  (0.1ms) begin transaction
3298
+  (0.1ms) rollback transaction
3299
+  (0.1ms) begin transaction
3300
+ SQL (4.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:42:50 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:42:50 UTC +00:00]]
3301
+  (0.1ms) commit transaction
3302
+  (0.0ms) begin transaction
3303
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:42:50 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:42:50 UTC +00:00]]
3304
+  (0.0ms) commit transaction
3305
+  (0.0ms) begin transaction
3306
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:42:50 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:42:50 UTC +00:00]]
3307
+  (0.0ms) commit transaction
3308
+  (0.1ms) begin transaction
3309
+ SQL (0.6ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:42:50 UTC +00:00], ["event_object_id", 1], ["event_object_type", "Message"], ["event_type", :Create], ["recipient_id", 1], ["recipient_type", "User"], ["sender_id", 2], ["sender_type", "User"], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:42:50 UTC +00:00]]
3310
+  (0.1ms) commit transaction
3311
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 1 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3312
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
3313
+  (0.1ms) begin transaction
3314
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:42:50 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:42:50 UTC +00:00]]
3315
+  (0.0ms) commit transaction
3316
+  (0.0ms) begin transaction
3317
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:42:50 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:42:50 UTC +00:00]]
3318
+  (0.0ms) commit transaction
3319
+  (0.0ms) begin transaction
3320
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:42:50 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:42:50 UTC +00:00]]
3321
+  (0.0ms) commit transaction
3322
+  (0.0ms) begin transaction
3323
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:42:50 UTC +00:00], ["event_object_id", 2], ["event_object_type", "Message"], ["event_type", :Delete], ["recipient_id", 3], ["recipient_type", "User"], ["sender_id", 4], ["sender_type", "User"], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:42:50 UTC +00:00]]
3324
+  (0.0ms) commit transaction
3325
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 3 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3326
+  (0.0ms) begin transaction
3327
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:42:50 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:42:50 UTC +00:00]]
3328
+  (0.0ms) commit transaction
3329
+  (0.0ms) begin transaction
3330
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:42:50 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:42:50 UTC +00:00]]
3331
+  (0.0ms) commit transaction
3332
+  (0.0ms) begin transaction
3333
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:42:50 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:42:50 UTC +00:00]]
3334
+  (0.0ms) commit transaction
3335
+  (0.1ms) begin transaction
3336
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:42:50 UTC +00:00], ["event_object_id", 5], ["event_object_type", "User"], ["event_type", :Create], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 5], ["sender_type", "User"], ["text", "You have created a User: Bob Smith"], ["updated_at", Fri, 10 Aug 2012 07:42:50 UTC +00:00]]
3337
+  (0.0ms) commit transaction
3338
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 5 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3339
+  (0.1ms) begin transaction
3340
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:42:50 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:42:50 UTC +00:00]]
3341
+  (0.0ms) commit transaction
3342
+  (0.0ms) begin transaction
3343
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:42:50 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:42:50 UTC +00:00]]
3344
+  (0.0ms) commit transaction
3345
+  (0.0ms) begin transaction
3346
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:42:50 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:42:50 UTC +00:00]]
3347
+  (0.0ms) commit transaction
3348
+  (0.0ms) begin transaction
3349
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:42:50 UTC +00:00], ["event_object_id", 4], ["event_object_type", "Message"], ["event_type", :Delete], ["recipient_id", 7], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", "User"], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:42:50 UTC +00:00]]
3350
+  (0.0ms) commit transaction
3351
+  (0.0ms) begin transaction
3352
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00], ["event_object_id", 4], ["event_object_type", "Message"], ["event_type", :Create], ["recipient_id", 7], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", "User"], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00]]
3353
+  (0.0ms) commit transaction
3354
+  (0.1ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 7
3355
+  (0.0ms) begin transaction
3356
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00]]
3357
+  (0.1ms) commit transaction
3358
+  (0.0ms) begin transaction
3359
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00]]
3360
+  (0.0ms) commit transaction
3361
+  (0.0ms) begin transaction
3362
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00]]
3363
+  (0.0ms) commit transaction
3364
+  (0.0ms) begin transaction
3365
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00], ["event_object_id", 5], ["event_object_type", "Message"], ["event_type", :Custom], ["recipient_id", 9], ["recipient_type", "User"], ["sender_id", 10], ["sender_type", "User"], ["text", "This is my custom message!"], ["updated_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00]]
3366
+  (0.0ms) commit transaction
3367
+  (0.0ms) begin transaction
3368
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00], ["event_object_id", 5], ["event_object_type", "Message"], ["event_type", :Custom], ["recipient_id", 10], ["recipient_type", "User"], ["sender_id", 10], ["sender_type", "User"], ["text", "This is my custom message!"], ["updated_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00]]
3369
+  (0.0ms) commit transaction
3370
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 9 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3371
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 10 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3372
+  (0.0ms) begin transaction
3373
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00]]
3374
+  (0.0ms) commit transaction
3375
+  (0.0ms) begin transaction
3376
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00]]
3377
+  (0.0ms) commit transaction
3378
+  (0.0ms) begin transaction
3379
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00]]
3380
+  (0.0ms) commit transaction
3381
+  (0.0ms) begin transaction
3382
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00], ["event_object_id", 12], ["event_object_type", "User"], ["event_type", :Update], ["recipient_id", 12], ["recipient_type", "User"], ["sender_id", 12], ["sender_type", "User"], ["text", "You have updated a User: Bob Smith"], ["updated_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00]]
3383
+  (0.0ms) commit transaction
3384
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 12 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3385
+  (0.0ms) begin transaction
3386
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00]]
3387
+  (0.0ms) commit transaction
3388
+  (0.0ms) begin transaction
3389
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00]]
3390
+  (0.0ms) commit transaction
3391
+  (0.0ms) begin transaction
3392
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00], ["updated_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00]]
3393
+  (0.0ms) commit transaction
3394
+  (0.0ms) begin transaction
3395
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00], ["event_object_id", 7], ["event_object_type", "Message"], ["event_type", :Create], ["recipient_id", 13], ["recipient_type", "User"], ["sender_id", 14], ["sender_type", "User"], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00]]
3396
+  (0.0ms) commit transaction
3397
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 13 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3398
+  (0.0ms) begin transaction
3399
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00], ["event_object_id", 7], ["event_object_type", "Message"], ["event_type", :Delete], ["recipient_id", 14], ["recipient_type", "User"], ["sender_id", 14], ["sender_type", "User"], ["text", "You have deleted a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00]]
3400
+  (0.1ms) commit transaction
3401
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 14 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3402
+  (0.1ms) begin transaction
3403
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00], ["event_object_id", 14], ["event_object_type", "User"], ["event_type", :Update], ["recipient_id", 14], ["recipient_type", "User"], ["sender_id", 14], ["sender_type", "User"], ["text", "You have updated a User: Bob Smith"], ["updated_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00]]
3404
+  (0.1ms) commit transaction
3405
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 14 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3406
+  (0.0ms) begin transaction
3407
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00], ["event_object_id", 7], ["event_object_type", "Message"], ["event_type", :Send], ["recipient_id", 13], ["recipient_type", "User"], ["sender_id", 14], ["sender_type", "User"], ["text", "Bob Smith has sent you a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00]]
3408
+  (0.0ms) commit transaction
3409
+  (0.0ms) begin transaction
3410
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00], ["event_object_id", 7], ["event_object_type", "Message"], ["event_type", :Send], ["recipient_id", 14], ["recipient_type", "User"], ["sender_id", 14], ["sender_type", "User"], ["text", "You have sent yourself a Message: Message Title"], ["updated_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00]]
3411
+  (0.0ms) commit transaction
3412
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 13 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3413
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 14 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3414
+  (0.0ms) begin transaction
3415
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00], ["event_object_id", 7], ["event_object_type", "Message"], ["event_type", :Custom], ["recipient_id", 13], ["recipient_type", "User"], ["sender_id", 14], ["sender_type", "User"], ["text", "This is my custom message"], ["updated_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00]]
3416
+  (0.0ms) commit transaction
3417
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 13 ORDER BY "news_feed_events"."id" DESC LIMIT 1