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.
- data/lib/news_feed/acts_as_news_feedable.rb +1 -2
- data/lib/news_feed/version.rb +1 -1
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20120807021300_insert_news_feed_events.rb +1 -1
- data/test/dummy/db/schema.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +32 -0
- data/test/dummy/log/test.log +993 -0
- data/test/news_feed_test.rb +84 -1
- data/test/test_helper.rb +1 -1
- metadata +1 -1
data/test/dummy/log/test.log
CHANGED
@@ -2422,3 +2422,996 @@ Connecting to database specified by database.yml
|
|
2422
2422
|
[1m[36mSQL (0.1ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
[1m[35m (0.0ms)[0m commit transaction
|
2424
2424
|
[1m[36mNewsFeedEvent Load (0.1ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 10 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
2425
|
+
Connecting to database specified by database.yml
|
2426
|
+
[1m[36m (2.6ms)[0m [1mselect sqlite_version(*)[0m
|
2427
|
+
[1m[35m (0.7ms)[0m CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2428
|
+
[1m[36m (0.2ms)[0m [1mCREATE 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) [0m
|
2429
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2431
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
2432
|
+
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
2433
|
+
[1m[35m (0.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
2434
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
2435
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('1')
|
2436
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2437
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2438
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2439
|
+
[1m[35mSQL (5.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
2441
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2442
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m commit transaction
|
2444
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2445
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
2447
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2448
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2450
|
+
[1m[36mNewsFeedEvent Load (0.3ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 1 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
2451
|
+
[1m[35mNewsFeedEvent Load (0.1ms)[0m SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
|
2452
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2453
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2455
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2456
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2458
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2459
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2461
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2462
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2464
|
+
[1m[36mNewsFeedEvent Load (0.1ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 3 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
2465
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2466
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2468
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2469
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2471
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2472
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2474
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2475
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2477
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2478
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2480
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 5[0m
|
2481
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2482
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2484
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2485
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2487
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2488
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2490
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2491
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2493
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2494
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2496
|
+
[1m[36mNewsFeedEvent Load (0.1ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 7 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
2497
|
+
[1m[35mNewsFeedEvent Load (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2499
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2501
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2502
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2504
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2505
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2507
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2508
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m commit transaction
|
2510
|
+
[1m[36mNewsFeedEvent Load (0.2ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 10 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
2511
|
+
Connecting to database specified by database.yml
|
2512
|
+
[1m[36m (1.7ms)[0m [1mselect sqlite_version(*)[0m
|
2513
|
+
[1m[35m (0.4ms)[0m CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2514
|
+
[1m[36m (0.2ms)[0m [1mCREATE 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) [0m
|
2515
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2517
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
2518
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
2519
|
+
[1m[35m (0.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
2520
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
2521
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('1')
|
2522
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2523
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2524
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2525
|
+
[1m[35mSQL (5.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
2527
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2528
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m commit transaction
|
2530
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2531
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
2533
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2534
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2536
|
+
[1m[36mNewsFeedEvent Load (0.2ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 1 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
2537
|
+
[1m[35mNewsFeedEvent Load (0.1ms)[0m SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
|
2538
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2539
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2541
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2542
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2544
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2545
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2547
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2548
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2550
|
+
[1m[36mNewsFeedEvent Load (0.2ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 3 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
2551
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2552
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2554
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2555
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2557
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2558
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2560
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2561
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
2563
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2564
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2566
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 5[0m
|
2567
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2568
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2570
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2571
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
2573
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2574
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2576
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2577
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2579
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2580
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2582
|
+
[1m[36mNewsFeedEvent Load (0.2ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 7 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
2583
|
+
[1m[35mNewsFeedEvent Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2585
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
2587
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2588
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m commit transaction
|
2590
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2591
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
2593
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2594
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m commit transaction
|
2596
|
+
[1m[36mNewsFeedEvent Load (0.3ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 10 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
2597
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2598
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m commit transaction
|
2600
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2601
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
2603
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2604
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m commit transaction
|
2606
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2607
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
2609
|
+
Connecting to database specified by database.yml
|
2610
|
+
[1m[36m (2.1ms)[0m [1mselect sqlite_version(*)[0m
|
2611
|
+
[1m[35m (0.4ms)[0m CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2612
|
+
[1m[36m (0.2ms)[0m [1mCREATE 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) [0m
|
2613
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2615
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
2616
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
2617
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
2618
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
2619
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('1')
|
2620
|
+
Connecting to database specified by database.yml
|
2621
|
+
[1m[36m (1.8ms)[0m [1mselect sqlite_version(*)[0m
|
2622
|
+
[1m[35m (0.6ms)[0m CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2623
|
+
[1m[36m (0.2ms)[0m [1mCREATE 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) [0m
|
2624
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2626
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
2627
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
2628
|
+
[1m[35m (0.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
2629
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
2630
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('1')
|
2631
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2632
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2633
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2634
|
+
[1m[35mSQL (4.8ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
2636
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2637
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2639
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2640
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
2642
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2643
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m commit transaction
|
2645
|
+
[1m[36mNewsFeedEvent Load (0.2ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 1 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
2646
|
+
[1m[35mNewsFeedEvent Load (0.1ms)[0m SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
|
2647
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2648
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2650
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2651
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2653
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2654
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2656
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2657
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2659
|
+
[1m[36mNewsFeedEvent Load (0.1ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 3 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
2660
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2661
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2663
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2664
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2666
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2667
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2669
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2670
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2672
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2673
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2675
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2676
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2678
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2679
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2681
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2682
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2684
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2685
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2687
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 7[0m
|
2688
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2689
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2691
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2692
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2694
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2695
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2697
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2698
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2700
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2701
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2703
|
+
[1m[36mNewsFeedEvent Load (0.1ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 9 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
2704
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2705
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m commit transaction
|
2707
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2708
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2710
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2711
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2713
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2714
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2716
|
+
[1m[35mNewsFeedEvent Load (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2718
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2720
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2721
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2723
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2724
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
2726
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2727
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m commit transaction
|
2729
|
+
[1m[36mNewsFeedEvent Load (0.1ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 13 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
2730
|
+
Connecting to database specified by database.yml
|
2731
|
+
[1m[36m (1.4ms)[0m [1mselect sqlite_version(*)[0m
|
2732
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2733
|
+
[1m[36m (0.2ms)[0m [1mCREATE 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) [0m
|
2734
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2736
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
2737
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
2738
|
+
[1m[35m (0.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
2739
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
2740
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('1')
|
2741
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2742
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2743
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2744
|
+
[1m[35mSQL (3.6ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2746
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2747
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2749
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2750
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2752
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2753
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2755
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2756
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2758
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2759
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2761
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2762
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2764
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2765
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2767
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2768
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2770
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2771
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2773
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2774
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2776
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2777
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2779
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2780
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2782
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2783
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2785
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2786
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2788
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2789
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2791
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2792
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2794
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2795
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2797
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2798
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2800
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2801
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2803
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2804
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2806
|
+
Connecting to database specified by database.yml
|
2807
|
+
[1m[36m (1.4ms)[0m [1mselect sqlite_version(*)[0m
|
2808
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2809
|
+
[1m[36m (0.2ms)[0m [1mCREATE 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) [0m
|
2810
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2812
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
2813
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
2814
|
+
[1m[35m (0.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
2815
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
2816
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('1')
|
2817
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2818
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2819
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2820
|
+
[1m[35mSQL (5.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
2822
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2823
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m commit transaction
|
2825
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2826
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
2828
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2829
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m commit transaction
|
2831
|
+
[1m[36mNewsFeedEvent Load (0.3ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 1 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
2832
|
+
[1m[35mNewsFeedEvent Load (0.2ms)[0m SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
|
2833
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2834
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
2836
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2837
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m commit transaction
|
2839
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2840
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2842
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2843
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2845
|
+
[1m[36mNewsFeedEvent Load (0.2ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 3 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
2846
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2847
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m commit transaction
|
2849
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2850
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2852
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2853
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2855
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2856
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2858
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2859
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2861
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2862
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2864
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2865
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2867
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2868
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
2870
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2871
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m commit transaction
|
2873
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 7[0m
|
2874
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2875
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m commit transaction
|
2877
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2878
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
2880
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2881
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m commit transaction
|
2883
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2884
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
2886
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2887
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m commit transaction
|
2889
|
+
[1m[36mNewsFeedEvent Load (0.2ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 9 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
2890
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2891
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m commit transaction
|
2893
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2894
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
2896
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2897
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m commit transaction
|
2899
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2900
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
2902
|
+
[1m[35mNewsFeedEvent Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2904
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
2906
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2907
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m commit transaction
|
2909
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2910
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
2912
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2913
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m commit transaction
|
2915
|
+
[1m[36mNewsFeedEvent Load (0.2ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 13 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
2916
|
+
Connecting to database specified by database.yml
|
2917
|
+
[1m[36m (1.5ms)[0m [1mselect sqlite_version(*)[0m
|
2918
|
+
[1m[35m (0.4ms)[0m CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2919
|
+
[1m[36m (0.1ms)[0m [1mCREATE 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) [0m
|
2920
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2922
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
2923
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
2924
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
2925
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
2926
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('1')
|
2927
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2928
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2929
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2930
|
+
[1m[35mSQL (3.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2932
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2933
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2935
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2936
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
2938
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2939
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m commit transaction
|
2941
|
+
[1m[36mNewsFeedEvent Load (0.2ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 1 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
2942
|
+
[1m[35mNewsFeedEvent Load (0.1ms)[0m SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
|
2943
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2944
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2946
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2947
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2949
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2950
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2952
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2953
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2955
|
+
[1m[36mNewsFeedEvent Load (0.1ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 3 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
2956
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2957
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2959
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2960
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2962
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2963
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2965
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2966
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2968
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2969
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2971
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2972
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2974
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2975
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2977
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2978
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2980
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2981
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2983
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 7[0m
|
2984
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2985
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2987
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2988
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2990
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2991
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2993
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2994
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2996
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2997
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2999
|
+
[1m[36mNewsFeedEvent Load (0.1ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 9 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
3000
|
+
[1m[35mNewsFeedEvent Load (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3002
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3004
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3005
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3007
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3008
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3010
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3011
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3013
|
+
[1m[36mNewsFeedEvent Load (0.1ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 12 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
3014
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3015
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3017
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3018
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3020
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3021
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m commit transaction
|
3023
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3024
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3026
|
+
[1m[35mNewsFeedEvent Load (0.2ms)[0m 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
|
+
[1m[36m (2.0ms)[0m [1mselect sqlite_version(*)[0m
|
3029
|
+
[1m[35m (0.5ms)[0m CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
3030
|
+
[1m[36m (0.1ms)[0m [1mCREATE 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) [0m
|
3031
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
3033
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
3034
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
3035
|
+
[1m[35m (0.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
3036
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
3037
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('1')
|
3038
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3039
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3040
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3041
|
+
[1m[35mSQL (3.6ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3043
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3044
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3046
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3047
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
3049
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3050
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m commit transaction
|
3052
|
+
[1m[36mNewsFeedEvent Load (0.2ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 1 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
3053
|
+
[1m[35mNewsFeedEvent Load (0.1ms)[0m SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
|
3054
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3055
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3057
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3058
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3060
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3061
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3063
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3064
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3066
|
+
[1m[36mNewsFeedEvent Load (0.2ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 3 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
3067
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3068
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3070
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3071
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3073
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3074
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3076
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3077
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3079
|
+
[1m[35mNewsFeedEvent Load (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3081
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
3083
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3084
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3086
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3087
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3089
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3090
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3092
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3093
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3095
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 7
|
3096
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3097
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3099
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3100
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m commit transaction
|
3102
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3103
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3105
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3106
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m commit transaction
|
3108
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3109
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3111
|
+
[1m[35mNewsFeedEvent Load (0.2ms)[0m 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
|
+
[1m[36mNewsFeedEvent Load (0.2ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 10 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
3113
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3114
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m commit transaction
|
3116
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3117
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3119
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3120
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3122
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3123
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3125
|
+
[1m[35mNewsFeedEvent Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3127
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
3129
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3130
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m commit transaction
|
3132
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3133
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
3135
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3136
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m commit transaction
|
3138
|
+
[1m[36mNewsFeedEvent Load (0.2ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 13 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
3139
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3140
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3142
|
+
[1m[36mNewsFeedEvent Load (0.1ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 14 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
3143
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3144
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3146
|
+
[1m[36mNewsFeedEvent Load (0.1ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 14 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
3147
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3148
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m commit transaction
|
3150
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3151
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
3153
|
+
[1m[35mNewsFeedEvent Load (0.2ms)[0m 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
|
+
[1m[36m (2.2ms)[0m [1mselect sqlite_version(*)[0m
|
3156
|
+
[1m[35m (0.6ms)[0m CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
3157
|
+
[1m[36m (0.3ms)[0m [1mCREATE 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) [0m
|
3158
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
3160
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
3161
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
3162
|
+
[1m[35m (0.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
3163
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
3164
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('1')
|
3165
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3166
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3167
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3168
|
+
[1m[35mSQL (4.8ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
3170
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3171
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3173
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3174
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
3176
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3177
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m commit transaction
|
3179
|
+
[1m[36mNewsFeedEvent Load (0.2ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 1 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
3180
|
+
[1m[35mNewsFeedEvent Load (0.1ms)[0m SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
|
3181
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3182
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3184
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3185
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3187
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3188
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3190
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3191
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3193
|
+
[1m[36mNewsFeedEvent Load (0.1ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 3 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
3194
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3195
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3197
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3198
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3200
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3201
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3203
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3204
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3206
|
+
[1m[35mNewsFeedEvent Load (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3208
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3210
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3211
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3213
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3214
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3216
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3217
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3219
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3220
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3222
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 7
|
3223
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3224
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3226
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3227
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3229
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3230
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3232
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3233
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3235
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3236
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3238
|
+
[1m[35mNewsFeedEvent Load (0.1ms)[0m 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
|
+
[1m[36mNewsFeedEvent Load (0.1ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 10 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
3240
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3241
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3243
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3244
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3246
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3247
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3249
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3250
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3252
|
+
[1m[35mNewsFeedEvent Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3254
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3256
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3257
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3259
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3260
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3262
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3263
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3265
|
+
[1m[36mNewsFeedEvent Load (0.2ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 13 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
3266
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3267
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m commit transaction
|
3269
|
+
[1m[36mNewsFeedEvent Load (0.2ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 14 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
3270
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3271
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m commit transaction
|
3273
|
+
[1m[36mNewsFeedEvent Load (0.1ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 14 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
3274
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3275
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3277
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3278
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
3280
|
+
[1m[35mNewsFeedEvent Load (0.2ms)[0m 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
|
+
[1m[36mNewsFeedEvent Load (0.2ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 14 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
3282
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3283
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m commit transaction
|
3285
|
+
[1m[36mNewsFeedEvent Load (0.1ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 13 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
3286
|
+
Connecting to database specified by database.yml
|
3287
|
+
[1m[36m (1.4ms)[0m [1mselect sqlite_version(*)[0m
|
3288
|
+
[1m[35m (0.4ms)[0m CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
3289
|
+
[1m[36m (0.1ms)[0m [1mCREATE 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) [0m
|
3290
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
3292
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
3293
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
3294
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
3295
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
3296
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('1')
|
3297
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3298
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3299
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3300
|
+
[1m[35mSQL (4.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
3302
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3303
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3305
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3306
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3308
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3309
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m commit transaction
|
3311
|
+
[1m[36mNewsFeedEvent Load (0.2ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 1 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
3312
|
+
[1m[35mNewsFeedEvent Load (0.1ms)[0m SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
|
3313
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3314
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3316
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3317
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3319
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3320
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3322
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3323
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3325
|
+
[1m[36mNewsFeedEvent Load (0.1ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 3 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
3326
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3327
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3329
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3330
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3332
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3333
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3335
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3336
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3338
|
+
[1m[35mNewsFeedEvent Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3340
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3342
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3343
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3345
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3346
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3348
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3349
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3351
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3352
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3354
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 7
|
3355
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3356
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
3358
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3359
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3361
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3362
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3364
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3365
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3367
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3368
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3370
|
+
[1m[35mNewsFeedEvent Load (0.2ms)[0m 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
|
+
[1m[36mNewsFeedEvent Load (0.1ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 10 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
3372
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3373
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3375
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3376
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3378
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3379
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3381
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3382
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3384
|
+
[1m[35mNewsFeedEvent Load (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3386
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3388
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3389
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3391
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3392
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3394
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3395
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3397
|
+
[1m[36mNewsFeedEvent Load (0.2ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 13 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
3398
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3399
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m commit transaction
|
3401
|
+
[1m[36mNewsFeedEvent Load (0.2ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 14 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
3402
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3403
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m commit transaction
|
3405
|
+
[1m[36mNewsFeedEvent Load (0.1ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 14 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
3406
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3407
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3409
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3410
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
3412
|
+
[1m[35mNewsFeedEvent Load (0.1ms)[0m 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
|
+
[1m[36mNewsFeedEvent Load (0.1ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 14 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
3414
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3415
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m commit transaction
|
3417
|
+
[1m[36mNewsFeedEvent Load (0.2ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 13 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|